I’m fairly new to Python and recently discovered Dash.
I’m building a graph which has durations on the Y axis, and Datetime on the X axis, but the graph which is generated is just a gradual slope instead of the correct data - and the labels are displayed in what I believe is ISO format…any suggestions on what I’m doing wrong here? (probably a lot )
The data comes from a dataframe in another file, and the data type of “time” is in timedelta64
my only assumption is that timedelta isn’t supported? but any clue of what to convert it to would be really appreciated.
I was able to fix this myself by changing the source duration data to an integer, instead of worrying about hours, minutes, seconds, microseconds - I only pulled the day value in my current data source (Excel, using Power query)
luckily all my averages exceeds a day, so it does the job!
Now you can access days, seconds, or for full control components.
Note that when you call pd.Series.dt you are telling pandas to treat this Series as a datetime Series, and access the relevant available method (provided that it is of the correct type of course):