( | Name | Gun_time | Net_time | Pace |
---|---|---|---|---|
John | 28:48:00 | 28:47:00 | 4:38:00 | |
George | 29:11:00 | 29:10:00 | 4:42:00 | |
Mike | 29:38:00 | 29:37:00 | 4:46:00 | |
Sarah | 29:46:00 | 29:46:00 | 4:48:00 | |
Roy | 30:31:00 | 30:30:00 | 4:55:00 |
Q1. How can I add another column stating difference between Gun_time and Net_time? Q2. How will I calculate the mean for Gun_time and Net_time. Please help!
I have tried doing the following but it doesn't work
df['Difference'] = df['Gun_time'] - df['Net_time']
for mean value I tried df['Gun_time'].mean
but it doesn't work either, please help!
Q.3 What if we have times in 28:48 (minutes and seconds) format and not 28:48:00 the function gives out a value error.
ValueError: expected hh:mm:ss format