I have an xlsx file with multiple tabs, each tab has a Date
column in the format of MM/DD/YYYY
Read each tab into a pandas dataframe, applied some operations on each tab, and then write the dataframe back into two formats: xlsx and csv
In the xlsx file, the Date
column (index) becomes a format that has the time attached: 1/1/2013 12:00:00 AM
, while the Date
column in the csv file remains unchanged: MM/DD/YYYY
How can I make sure the Date
column in the xlsx file maintains the same format MM/DD/YYYY
?