title: Find largest 2 values for each year in the returned pandas groupby object after sorting each group
body: <p>My dataframe has 3 columns: Year. Leading Cause,Deaths. I want to find the total number of deaths by leading cause in each year. I did the following:
  <code>totalDeaths_Cause = df.groupby(["Year", "Leading Cause"])["Deaths"].sum()</code>
  which results in:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>The total number of deaths for :
  
   Year  Leading Cause          
  2009  Hypertension                 26
  2010  All Other Causes           2140
  2011  Cerebrovascular Disease     281
        Immunodeficiency             70
        Parkinson Disease           180
  2012  Cerebrovascular Disease     102
        Disease1                    183
        Diseases of Heart            76
  2013  Cerebrovascular Disease     386
        Parkinson Disease           372
        Self-Harm                    17
  Name: Deaths, dtype: int64</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now I want to get the largest 2 values(for deaths) each year and the leading Cause such that:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>The total number of deaths for :
  
   Year  Leading Cause          
  2009  Hypertension                 26
  2010  All Other Causes           2140
  2011  Cerebrovascular Disease     281
        Parkinson Disease           180
  2012  Disease1                    183
        Cerebrovasular disease      102
  2013  Cerebrovascular Disease     386
        Parkinson Disease           372</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks in advance for your help!</p>