title: Sub setting a multi level dataframe by the top values for each second level index in python
body: <p>I have a multilevel index dataframe that looks like the image below. I have sorted the second level index on the higher of the perc_viewed column. So for each 1st level index, the higher of Male(M) or Female(F) is listed first. Now I want to access just the 1st level index values and the first of the second level index value (the top one) -- only those two and use them in my write up for my analysis as the &quot;top&quot; in each category. How may I do this please</p>
  <p><a href="https://i.stack.imgur.com/dfxEp.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Another view of this data is as below. In this case the values appearing first that I have highlighted are the only ones that I want to access.</p>
  <p><a href="https://i.stack.imgur.com/xNNju.png" rel="nofollow noreferrer">enter image description here</a></p>