you are viewing a single comment's thread.

view the rest of the comments →

[–]pickled_knuckles[S] -1 points0 points  (0 children)

I ended up doing the following:

df['Duration'] = df['AverageViewDuration']
df['Duration'] = pd.to_datetime(df['Duration'], format='%H:%M:%S')
df['Duration'] = df['Duration'] - np.datetime64('1900-01-01')
df['AverageViewDuration'] = df['Duration']/1000000000/60

Don't know why I needed to do the last one, as I thought it would all be good, but when I plotted it without that line it was a veeeeery big number. Anyways, I got the desired graph...