Leave dates as strings using read_excel function from pandas in python

后端 未结 3 889
南旧
南旧 2020-12-02 00:17

Python 2.7.10
Tried pandas 0.17.1 -- function read_excel
Tried pyexcel 0.1.7 + pyexcel-xlsx 0.0.7 -- function get_records()

3条回答
  •  我在风中等你
    2020-12-02 00:49

    I tried saving the file in a CSV UTF-8 format (manually) and used pd.read_csv() and worked fine.

    I tried a bunch of things to figure the same thing with read_excel. Did not work anything for me. So, I am guessing read_excel is probably updating your string in a datetime object which you can not control.

提交回复
热议问题