I have a data frame which has a column usage_duration (which is the difference of two another columns in datetime format). It looks like below:
processid, userid, usage_duration
17613,root,0 days 23:41:03.000000000
17641,root,2 days 04:05:26.000000000
13848,acs,0 days 00:00:50.000000000
3912,acs,0 days 06:07:38.000000000
6156,acs,0 days 17:22:43.000000000
Now I wanted to convert the same into minutes. It should look like as below:
processid, userid, usage_duration_min
17613,root,1421
17641,root,3125
13848,acs,0
3912,acs,367
6156,acs,1042
Can someone let me know how is it possible?
Highly appreciate your support
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…