1
I have a dataframe with two columns of Total CPU Time and Date, in the format below:
Total Cpu Time: 00:00:14
Date : 2019-02-06
I need to do a group by Date that adds the hours (without disregarding minute and second) of CPU Time. I tried to convert the way below and then give group by, but unsuccessfully.
df['total_cpu_time'] = pd.to_datetime(df['total_cpu_time']).dt.time
Someone has a solution?
Wonderful! Thank you very much!
– Ysabelle Sousa
How would I plot this result? It gives error "No Numeric data to Plot".
– Ysabelle Sousa
I edited the answer.
– tomasantunes