severstal_df['duration'] = pd.to_datetime(severstal_df['time'], format = '%H:%M:%S')
severstal_df
severstal_df = severstal_df.groupby('operation').duration.apply(lambda x: x.max() - x.min()).reset_index(name='duration')
severstal_df
(pd.Timestamp('today').normalize()+severstal_df['duration']).dt.time