일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 |
- 인공지능
- 김양재
- 빅 데이터
- Deep learning
- 김양재 목사님
- Statistics
- nodeJS
- 딥러닝
- 김양재 목사
- 빅데이터
- 확률
- c++
- R
- data science
- 우리들교회
- Big Data
- probability
- 통계
- 데이터 과학
- 주일설교
- 빅데이타
- 몽고디비
- Machine Learning
- No SQL
- Artificial Intelligence
- node.js
- openCV
- 빅 데이타
- MongoDB
- WebGL
- Today
- Total
목록2017/11/24 (3)
Scientific Computing & Data Science
이번 포스팅에서는 Python의 Data 데이터 분석 라이브러리(모듈)인 pandas를 이용하여 Microsoft Excel 파일의 데이터를 불러오는 방법에 대하여 알아보도록 하겠습니다. 샘플 코드는 다음과 같습니다:12345678910import pandas as pd inputExcelFile = {YOUR_EXCEL_FILE_PATH}if os.path.isfile(inputExcelFile): xl = pd.ExcelFile(inputExcelFile)else: print("[ERROR] Failed to load Excel File : %s" % (inputExcelFile)) # Load a sheet into a DataFrame by name: dfdf = xl.parse(''.join(x..
Python에서 디렉터리의 존재 여부를 확인하고, 없을 경우 해당 디렉터리를 생성하는 예제 코드입니다.1234567try: if not(os.path.isdir({YOUR_DIRECTORY_NAME})): os.makedirs(os.path.join({YOUR_DIRECTORY_NAME}))except OSError as e: if e.errno != errno.EEXIST: print("Failed to create directory!!!!!") raiseColored by Color Scriptercs {YOUR_DIRECTORY_NAME}은 생성하고자 하는 디렉터리 이름입니다.다음은 텍스트 파일에 데이터를 쓰는 예제 코드입니다.123456789import os filepath = os.path.jo..