You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still very much a beginner when it comes to Pandas so I'm not sure if the problem lies in the generation of the Dataframe and the 'type assignment' or if it is something else?
The text was updated successfully, but these errors were encountered:
So when I convert this to a time in seconds or milliseconds, as you stated above, the plot works fine. I would definitely put in the [s] or [ms] arg to timedelta64 so that you explicitly know what you're getting.
I'm not sure this is really a bug.. just perhaps a known issue with time deltas and plotting, so I'm going to close this. But I am going to create an issue that documents this and gives examples of plotting time deltas. (new issue is #46)
I tried to generate some graphs from the conn.log file when I ran into some problems.
If I follow the 'Bro_to_Plot.ipynb' framework and try the following:
conn_df['duration'].hist()
It bombs out with quite a lot of error output which culminates with:
TypeError: Cannot cast ufunc less input from dtype('float64') to dtype('<m8[ns]') with casting rule 'same_kind'
Some Googling later I tried with the following:
conn_df.duration = conn_df.duration.astype('timedelta64')
Once I did that the plot displayed properly.
I'm still very much a beginner when it comes to Pandas so I'm not sure if the problem lies in the generation of the Dataframe and the 'type assignment' or if it is something else?
The text was updated successfully, but these errors were encountered: