0

I have a DataFrame with a column of the time and a column in which I have stored a time lag. The data looks like this:

 2020-04-18 14:00:00                         0 days 03:00:00
 2020-04-19 02:00:00                         1 days 13:00:00    
 2020-04-28 14:00:00                         1 days 17:00:00
 2020-04-29 20:00:00                         2 days 09:00:00
 2020-04-30 19:00:00                         2 days 11:00:00

Time, Length: 282, dtype: datetime64[ns]    Average time lag, Length: 116, dtype: object

I want to plot the Time on the x-axis vs the time lag on the y-axis. However, I keep having errors with plotting the second column. Any tips on how to handle this data for the plot?

Idw
  • 41
  • 5
  • Does this answer your question? [Plot datetime.timedelta using matplotlib and python](https://stackoverflow.com/questions/48294332/plot-datetime-timedelta-using-matplotlib-and-python) – FObersteiner Dec 03 '22 at 17:10

0 Answers0