Here is my Dataframe printed with df.to_markdown())
| type | convesion time | covert json | data to convert | process completed | time taken | 
|---|---|---|---|---|---|
| INFO | 0 days 00:01:00 | 2023-03-09 18:56:57 | 23000 | 0 days 00:02:03 | 0 days 00:02:09 | 
| INFO | 0 days 00:01:30 | 2023-03-09 19:00:01 | 30000 | 0 days 00:03:28 | 0 days 00:03:31 | 
| INFO | 0 days 00:01:30 | 2023-03-09 19:00:01 | 50000 | 0 days 00:03:28 | 0 days 00:06:31 | 
| INFO | 0 days 00:00:30 | 2023-03-09 19:00:01 | 1000 | 0 days 00:00:28 | 0 days 00:00:31 | 
I want to get
- Min data to convert its respective conversion time, process completed time and total time(conversion time +process 
 completed),time taken
- Max data to convert its respective conversion time, process completed time and total time(conversion time +process completed),time taken 
- Avg data to convert its respective conversion time, process completed time and total time(conversion time +process 
 completed),time taken
i tried,
df.loc[df['data to convert']==data_min, 'convesion time']
df['time taken'] = pd.to_timedelta(df['time taken'])
df['time taken'].sum()
Am not able to get what am expecting.
Expected Output:
| d | Data to convert | Conversion time | Process completed | total time(process+conversion) | Time taken | 
|---|---|---|---|---|---|
| MIN | 1000 | 00:00:30 | 00:00:28 | 00:00:58 | 00:00:31 | 
| MAX | 50000 | 00:01:30 | 00:03:28 | 00:04:58 | 00:06:31 | 
| AVG | 25500 | 00:01:00 | 00:01:58 | 00:02:58 | 00:03:31 | 
 
    