title: How do you make datetime list from dataframe row value?
body: <p>I am a beginner in Python and I want to make a datetime list from existing values in my dataframe.</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th></th>
  <th>booking_date</th>
  <th>booking_check_in</th>
  <th>days_of_stay</th>
  <th>booking_currency</th>
  <th>booking_earned</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>0</td>
  <td>2019-09-14</td>
  <td>2019-12-20</td>
  <td>2</td>
  <td>1</td>
  <td>611632.0</td>
  </tr>
  <tr>
  <td>1</td>
  <td>2019-10-21</td>
  <td>2019-11-01</td>
  <td>1</td>
  <td>1</td>
  <td>742806.0</td>
  </tr>
  <tr>
  <td>2</td>
  <td>2020-01-01</td>
  <td>2020-03-02</td>
  <td>2</td>
  <td>1</td>
  <td>1400000.0</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I want to make a list of the date people stayed from booking_check_in by using <code>pd.date_range</code> as the start and days_of_stay for the periods, and make a new column of date_stayed from it.</p>
  <p>date_stayed will replace booking_check_in and days_of_stay, and the booking_earned will be divided by the value of days_of_stays</p>
  <p>It should be something like this as the result:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th></th>
  <th>booking_date</th>
  <th>date_stayed</th>
  <th>booking_currency</th>
  <th>booking_earned</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>0</td>
  <td>2019-09-14</td>
  <td>2019-12-20</td>
  <td>1</td>
  <td>305816.0</td>
  </tr>
  <tr>
  <td>1</td>
  <td>2019-09-14</td>
  <td>2019-12-21</td>
  <td>1</td>
  <td>305816.0</td>
  </tr>
  <tr>
  <td>2</td>
  <td>2019-10-21</td>
  <td>2019-11-01</td>
  <td>1</td>
  <td>742806.0</td>
  </tr>
  <tr>
  <td>3</td>
  <td>2020-01-01</td>
  <td>2020-03-02</td>
  <td>1</td>
  <td>700000.0</td>
  </tr>
  <tr>
  <td>4</td>
  <td>2020-01-01</td>
  <td>2020-03-03</td>
  <td>1</td>
  <td>700000.0</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I would truly appreciate it if someone could explain thoroughly and give me some ideas to achieve the result I want. Thanks!</p>