title: Only one column after group by()
body: <p>Am switch from R to Python for most of my data analysis needs and am running into the following issue. Could be the result of my conceptual understanding of groupby().</p>
  
  <p>I have a Pandas data frame and am trying to summarize the data based on a number of columns. The following code get's me what I want.</p>
  
  <pre><code>df = df[(df["Lead Source"] != "chase") &amp; (df["Lead Source"] != "SNE")]
  ndf = df[["Date", "Lead Source", "Model Group", "Leads"]].groupby(["Date", "Lead Source"]).sum()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/6v6BZ.png" alt="enter image description here"></p>
  
  <p>This looked great, but I noticed that there is only one 'real' column when running the following. (fyi ndf2 is just a copy of ndf)</p>
  
  <pre><code>ndf2.columns
  Out[39]: Index([u'Leads'], dtype='object')
  </code></pre>
  
  <p>Also, the indexing of rows showed that this wasn't quite what I was hoping for.</p>
  
  <p><img src="https://i.stack.imgur.com/2Z4Jg.png" alt="enter image description here"></p>
  
  <p>How can I adjust the rows so that the column names appear on the first row. The output should look as follows.</p>
  
  <pre><code>Date      Lead Source    Leads
  1/1/2014  ...            ... 
            ...            ...
            ...            ...
  </code></pre>