Python Multiindex Dataframe remove maximum
问题 I am struggling with MultiIndex DataFrame in python pandas. Suppose I have a df like this: count day group name A Anna 10 Monday Beatrice 15 Tuesday B Beatrice 15 Wednesday Cecilia 20 Thursday What I need is to find the maximum in name for each group and remove it from the dataframe. The final df would look like: count day group name A Anna 10 Monday B Beatrice 15 Wednesday Does any of you have any idea how to do this? I am running out of ideas... Thanks in advance! EDIT: What if the original