Jan-19-2019, 10:47 PM
The problem is likely the extra parentheses. Since pandas incorporates datetime operations, you actually don't need the datetime module; apologies for the bad advice. Try this:
import pandas df1=pandas.read_excel("FB.xlsx",sheet_name=0) df2 = df1.set_index("Date") df3 = pandas.to_datetime(df2, format="%d / %m / %Y")