title: Pandas Pivot table reset index of columns
body: <pre><code>`KM_Data_ENG = pd.pivot_table(read_sql_KM, index=["PLACEMENT_DESC", "METRIC_DESC","BLAZE_ACTION_TYPE_DESC"],
                                       values=["ENG_INTERACTION"],columns=["BLAZE_TAG_NAME_DESC"], aggfunc=np.sum, fill_value=0, margins=True)
  
          KM_reset = KM_Data_ENG.reset_index()
          print KM_reset
  </code></pre>
  
  <p>`I have pivot table data frame which is giving me output like below<a href="https://i.stack.imgur.com/4szy5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4szy5.png" alt="enter image description here"></a></p>
  
  <p>but i want the data like below.<a href="https://i.stack.imgur.com/SfFmN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SfFmN.png" alt="enter image description here"></a></p>
  
  <p>I tried <a href="https://stackoverflow.com/questions/33290374/pandas-pivot-table-column-names">pandas pivot_table column names</a>, this link options but it doesn't seems to working for me.</p>
  
  <p>sample data attached.
  <a href="https://drive.google.com/open?id=1dGDb4tjyRKzjVIH-BNEy0NJvmLxbiA2g" rel="nofollow noreferrer">https://drive.google.com/open?id=1dGDb4tjyRKzjVIH-BNEy0NJvmLxbiA2g</a></p>