th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
</style>
<table border="1" class="dataframe">
  <thead>
    <tr style="text-align: right;">
      <th></th>
      <th>duration</th>
      <th>frequency</th>
      <th>num_bets</th>
      <th>mean_bets_per_day</th>
      <th>mean_bet_size</th>
      <th>total_wagered</th>
      <th>net_loss</th>
      <th>percent_loss</th>
    </t