title: row sum on a pandas pivot table
body: <p>I am stuck on trying to figure out how to add a row sum to a pandas pivot table. Would somebody please help point me towards the right direction.</p>
  
  <p>This is my code below. </p>
  
  <pre><code>x.pivot_table(index = ["am","spot_or_contract"],
                columns = "status",
                values = "shipment_id",
                aggfunc = "count").fillna('')
  </code></pre>
  
  <p>Thank you very much in advance</p>