https://stats-learn.com/en/python/pandas-virtue-as_index-in-groupby/
Pandas: Virtue as_index in groupby