title: Is there a way to include all columns in a groupby for similar data?
body: <p>I have been doing a groupby on sales data which looks like the below dataframe to calculate the sum of quantities and cost.</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Product</th>
  <th>Quantity</th>
  <th>Cost</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>A</td>
  <td>12</td>
  <td>50</td>
  </tr>
  <tr>
  <td>A</td>
  <td>12</td>
  <td>50</td>
  </tr>
  <tr>
  <td>A</td>
  <td>12</td>
  <td>50</td>
  </tr>
  <tr>
  <td>A</td>
  <td>12</td>
  <td>70</td>
  </tr>
  <tr>
  <td>A</td>
  <td>12</td>
  <td>50</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>The groupby
  <code>df.loc[:, ['Product', 'Quantity', 'Cost']].groupby(['Product']).sum())</code>
  though results in</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th></th>
  <th>Cost</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>Product</td>
  <td></td>
  </tr>
  <tr>
  <td>A</td>
  <td>270</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Is there a way to also include the sum of quantities for the scenario?</p>