Dash Parse_dates, index_col, pd.to_datetime not recognising date format

Hi I am struggling with my dataset and none of the above, Dash Parse_dates, index_col, pd.to_datetime recognise date format on Dash and the chart are so weird.
What the best practice to read Dates on DASH?

Hey @MGBpy,

pd.to_datetime(df['date']) should be fine. Here are some examples working with dates https://plot.ly/python/time-series/

2 Likes

Hi @bcd, Thanks. My conclusion is that pd.to_datetime really works but what doesnt work is the grouping method I am using (groupby, resample, etc) because when I use pd.pivot_table I am able to group number of cases per date.