title: merge few pivot tables in pandas
body: <p>How I can merge two pandas pivot tables? 
  When I try run my code I have error: keyerror</p>
  
  <blockquote>
  <pre><code>data_pivot= pandas.DataFrame(data.pivot_table(values = 'NR_ACTIONS', index=["HOUR", "OPID", "NAME"], columns='CONTACTED_PERSON_NEW', aggfunc='sum'))
  data_pivot.fillna(0, inplace=True)
  data2_pivot= pandas.DataFrame(data2.pivot_table(values = 'AMOUNT_PA', index=["HOUR", "OPID", "NAME"], columns='PA_TYPE', aggfunc='sum'))
  data2_pivot.fillna(0, inplace=True)
  all_data = pandas.merge(data_pivot, data2_pivot, 'left', on = ["HOUR", "OPID", "NAME"] ) 
  </code></pre>
  </blockquote>