title: How To Combine Multiple Rows Into One Based on Shared Value in Pandas
body: <p>I have a dataframe that generically looks like this: </p>
  
  <pre><code>df = pd.DataFrame({'Country': ['USA', 'USA', 'Canada', 'Canada'], 'GDP':          [45000, 68000, 34000, 46000], 'Education': [5, 3, 7, 9]})
  </code></pre>
  
  <p>Giving: </p>
  
  <pre><code>    Country  Education    GDP
  0     USA          5    45000
  1     USA          3    68000
  2  Canada          7    34000
  3  Canada          9    46000
  </code></pre>
  
  <p>I'd like to have all the values for each country listed on the same row, so it reads:</p>
  
  <pre><code>Country    Education    Education    GDP        GDP
  USA         5            3           45000      68000
  </code></pre>
  
  <p>How does one accomplish this?  </p>
  
  <p>And yes, some of the columns do have the same name.</p>
  
  <p>Thank you.</p>