I've got a dataframe with a multi index of Year and Month like the following
Year Month Value
1992 1 3
2 5
3 8
……. …….
1993 1 2
I'm trying to select the maximum Value for each year and put that in a DF like this:
Year Max
1992 5
1993 2
……
There's not much info on multi-indexes, should I simply do a group by and apply or something similar to make it more simple?
If you wish to learn more about how to use python for data science, then go through this data science python course by Intellipaat for more insights.