일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Apache
- Github
- hive
- list
- gas
- Excel
- array
- dataframe
- google apps script
- Java
- math
- Google Spreadsheet
- 파이썬
- Python
- Redshift
- GIT
- c#
- string
- django
- Kotlin
- Mac
- PostgreSQL
- Tkinter
- PANDAS
- numpy
- Google Excel
- SQL
- matplotlib
- PySpark
- Today
- Total
목록Python (379)
달나라 노트
xlrd.biffh.XLRDError: Excel xlsx file; not supported pandas의 read_excel method를 사용하다보면 위같은 Error가 발생할 수도 있습니다. 그럴 때에는 아래의 2가지 방법을 체크해볼 수 있습니다. 1. openpyxl을 이용하는 방법. openpyxl을 설치한 후 read_excel method의 option에 다음 내용을 추가한다. engine='openpyxl' import pandas as pd pd.read_excel('test_file.xlsx', sheet_name='test', engine='openpyxl') 3. pandas의 version을 더 높은 version으로 업데이트한다. (가장 최신 version으로 하는 것도 좋지만..
Pycharm과 github를 연동해서 Pycharm에서 직접 git pull, git commit, git push 등의 작업을 할 수 있습니다. 근데 commit을 하려고하면 위처럼 단순히 commit할 파일과 commit message 입력 창만 보여줍니다. 어떤 부분이 수정되었는지 같이 보이면 더 좋을거같으니 설정을 좀 바꿔봅시다.해봅시다. Pycharm Preferences로 진입합니다. 좌측 상단에 commit을 검색하면 Version Control -> Commit 메뉴가 나옵니다. 여기서 보이는 Use non-modal commit interface를 체크 해제해줍니다. 그러면 아래의 이미지처럼 commit 버튼을 누른 후 나타나는 commit 창에서 내가 선택한 commit 대상이 될 파..
Python을 사용하다보면 여러 library들의 version이 충돌을 일으켜 정상적으로 일으키지 않을 때가 있습니다. 이런 경우 library의 버전을 downgrade하거나 upgrade해줘야하는데 현재 python version에 따라 설치가 불가능한 library version도 있습니다. 이런 경우에는 Python 자체의 version을 조절해줘야 하죠. conda install python=version conda interpreter를 사용할 때 위처럼 terminal에 입력해주면 python version이 위 command에서 명시한 version으로 변경됩니다. conda install python=3.9.3 위처럼 원하는 python version을 입력해주면 python versi..
먼저 python의 numpy library에서는 반올림 함수로 round 가 있습니다. numpy.round(number, digit) number --> 반올림을 적용할 숫자입니다. digit --> 반올림 하여 얻은 결과에 소수점 자리수가 몇개나 있을지에 대한 숫자입니다. 이것의 의미는 아래 예시에서 보겠습니다. import numpy as np print(np.round(1738.7926)) # 1 --> 1739.0 print(np.round(1738.7926, 0)) # 2 --> 1739.0 print(np.round(1738.7926, 1)) # 3 --> 1739.8 print(np.round(1738.7926, 2)) # 4 --> 1739.79 print(np.round(1738.79..