I read a large Excel file into pandas using .read_excel
, and the file has date columns. When read into pandas, the dates default to a timestamp. Since the file is large, I would like to read the dates as a string.
If that is not possible, then I would at least like to export the date back to Excel in the same format as it is in the original file (e.g. "8/18/2009").
My two questions are:
this is similar as issue here. Leave dates as strings using read_excel function from pandas in python
check the answers:
pandas.read_excel(xlsx, sheet, converters={'Date': str})
df['Date'][0].strftime('%Y/%m/%d')