title: Pandas Resample OHCL
body: <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>index</th>
  <th>close</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>2022-02-21</td>
  <td>3</td>
  </tr>
  <tr>
  <td>2022-02-22</td>
  <td>1</td>
  </tr>
  <tr>
  <td>2022-02-23</td>
  <td>5</td>
  </tr>
  <tr>
  <td>2022-02-24</td>
  <td>5</td>
  </tr>
  <tr>
  <td>2022-02-25</td>
  <td>7</td>
  </tr>
  <tr>
  <td>2022-03-02</td>
  <td>4</td>
  </tr>
  <tr>
  <td>2022-03-03</td>
  <td>2</td>
  </tr>
  <tr>
  <td>2022-03-04</td>
  <td>1</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>My output should be:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>index</th>
  <th>close</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>2022-02-21</td>
  <td>7</td>
  </tr>
  <tr>
  <td>2022-03-02</td>
  <td>1</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I have tried</p>
  <pre><code>df.resample('W-MON', closed='left', label='left').last() 
  </code></pre>
  <p>but I got a wrong label.</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>index</th>
  <th>close</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>2022-02-21</td>
  <td>7</td>
  </tr>
  <tr>
  <td>2022-02-28</td>
  <td>1</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>The problem is that I could have &quot;missing days&quot;, like 2022-02-28 and 2022-03-01 and I would like to use the first &quot;available&quot; day of the week. e.g 2022-02-21 (Monday) and 2022-03-02 (Wednesday)</p>