sharebook-kr / pybithumb

python wrapper for bithumb API
MIT License
94 stars 55 forks source link

ValueError: Excel does not support datetimes with timezones. Please ensure that datetimes are timezone unaware before writing to Excel. #33

Open kimkakaka opened 2 years ago

kimkakaka commented 2 years ago

df.to_excel("btc.xlsx") 에서 아래와 같이 에러가 출력됩니다. 혹시 어떤한 부분이 문제인지 말씀해주실 수 있는지요? 현재 로컬(윈도우10)에서 pycharm community 버전으로 실행하고 있습니다. 감사합니다.

Traceback (most recent call last): File "로컬주소", line 12, in df.to_excel("btc.xlsx") File "파이썬 로컬주소\Python39\lib\site-packages\pandas\core\generic.py", line 2345, in to_excel formatter.write( File "파이썬 로컬주소\Python39\lib\site-packages\pandas\io\formats\excel.py", line 894, in write writer.write_cells( File "파이썬 로컬주소\Python39\lib\site-packages\pandas\io\excel_openpyxl.py", line 460, in write_cells for cell in cells: File "파이썬 로컬주소\Python39\lib\site-packages\pandas\io\formats\excel.py", line 832, in get_formatted_cells cell.val = self._format_value(cell.val) File "파이썬 로컬주소\Python39\lib\site-packages\pandas\io\formats\excel.py", line 547, in _format_value raise ValueError( ValueError: Excel does not support datetimes with timezones. Please ensure that datetimes are timezone unaware before writing to Excel.