I have the following data set and I want to return the minimum of
vol grouped by
year but I want also to know on which day (
date column) this minimum occurred. This is a part of a bigger function.
For the example below, the return should be:
The first thing I tried was:
df_grouped_vol = pandas_df.groupby(pandas_df['year']).min()[['date', 'vol']]