title: Date_Range parameters
body: <p>I want to apply a date_range to the index of my dataframe that comes as datetime, for which I want the hours, days, months to be added in said index according to a duration hour value.</p>
  <p><strong>Ex: Original Dataframe</strong></p>
  <pre><code>  Date_Out                Hour_Duration
  2020-04-10 06:19:45            3
  2020-04-19 20:05:50            6
  2020-04-30 22:50:00            4
  
  </code></pre>
  <p><strong>Ex: Dataframe Desired Result</strong></p>
  <pre><code> Date_Out                Hour_Duration
  2020-04-10 06:19:45            3
  2020-04-19 07:19:45            3
  2020-04-19 08:19:45            3
  2020-04-19 20:05:50            6
  2020-04-19 21:05:50            6
  2020-04-19 22:05:50            6
  2020-04-19 23:05:50            6
  2020-04-20 00:05:50            6
  2020-04-20 01:05:50            6
  2020-04-30 22:50:00            4
  2020-04-30 23:50:00            4
  2020-05-01 00:50:00            4
  2020-05-01 01:50:00            4
  </code></pre>
  <p>What solution do you recommend? Can a function be applied in the &quot;period&quot; parameter of the date_range?</p>
  <p><strong>UPDATE:</strong></p>
  <p>Original Dataframe (Name Dataframe: travels)</p>
  <pre><code>        Date    Actual Departure Date    Arrival Date     DurationHour  DHour
  0   2020-04-28  2020-04-28 12:26:39 2020-04-28 16:24:00 0 days 03:57:21   3
  1   2020-04-20  2020-04-20 07:53:22 2020-04-21 05:30:00 0 days 21:36:38   6
  2   2020-05-28  2020-05-28 15:54:22 2020-05-29 08:17:00 0 days 16:22:38   2
  3   2020-05-29  2020-05-29 22:57:05 2020-05-30 01:21:00 0 days 02:23:55   5
  4   2020-05-25  2020-05-25 07:22:41 2020-05-30 13:47:00 5 days 06:24:19   1
  </code></pre>
  <p><code>travels.dtypes</code></p>
  <pre><code>Date                      datetime64[ns]
  Actual Departure Date     datetime64[ns]
  Arrival Date              datetime64[ns]
  DurationHour              timedelta64[ns]
  DHour                           int64
  </code></pre>
  <p><strong>EXPECTED RESULT</strong></p>
  <p>The result is reflected in the column <code>Actual Departure Date</code>, where the unit sum of hours in the column  <code>Actual Departure Date</code> is conditional (<em>repeats and adds an hour</em>) on the value of the column <code>DHour</code></p>
  <pre><code>     Date   Actual Departure Date    Arrival Date         DurationHour    DHour
  0   2020-04-28  2020-04-28 12:26:39 2020-04-28 16:24:00 0 days 03:57:21     3
  0   2020-04-28  2020-04-28 13:26:39 2020-04-28 16:24:00 0 days 03:57:21     3
  0   2020-04-28  2020-04-28 14:26:39 2020-04-28 16:24:00 0 days 03:57:21     3
  0   2020-04-28  2020-04-28 15:26:39 2020-04-28 16:24:00 0 days 03:57:21     3
  1   2020-04-20  2020-04-20 07:53:22 2020-04-21 05:30:00 0 days 21:36:38     6
  1   2020-04-20  2020-04-20 08:53:22 2020-04-21 05:30:00 0 days 21:36:38     6
  1   2020-04-20  2020-04-20 09:53:22 2020-04-21 05:30:00 0 days 21:36:38     6
  1   2020-04-20  2020-04-20 10:53:22 2020-04-21 05:30:00 0 days 21:36:38     6
  1   2020-04-20  2020-04-20 11:53:22 2020-04-21 05:30:00 0 days 21:36:38     6
  1   2020-04-20  2020-04-20 12:53:22 2020-04-21 05:30:00 0 days 21:36:38     6
  1   2020-04-20  2020-04-20 13:53:22 2020-04-21 05:30:00 0 days 21:36:38     6
  2   2020-05-28  2020-05-28 15:54:22 2020-05-29 08:17:00 0 days 16:22:38     2
  2   2020-05-28  2020-05-28 16:54:22 2020-05-29 08:17:00 0 days 16:22:38     2
  2   2020-05-28  2020-05-28 16:54:22 2020-05-29 08:17:00 0 days 16:22:38     2
  3   2020-05-29  2020-05-29 23:57:05 2020-05-30 01:21:00 0 days 02:23:55     5
  3   2020-05-29  2020-05-30 00:57:05 2020-05-30 01:21:00 0 days 02:23:55     5
  3   2020-05-29  2020-05-30 01:57:05 2020-05-30 01:21:00 0 days 02:23:55     5
  3   2020-05-29  2020-05-30 02:57:05 2020-05-30 01:21:00 0 days 02:23:55     5
  3   2020-05-29  2020-05-30 03:57:05 2020-05-30 01:21:00 0 days 02:23:55     5
  3   2020-05-29  2020-05-30 04:57:05 2020-05-30 01:21:00 0 days 02:23:55     5
  4   2020-05-25  2020-05-25 07:22:41 2020-05-30 13:47:00 5 days 06:24:19     1
  4   2020-05-25  2020-05-25 08:22:41 2020-05-30 13:47:00 5 days 06:24:19     1
  </code></pre>
  <p>I am trying the following method: <code>travels.loc[np.repeat(travels.index.values, abs(travels['DHour']))]</code> and it repeats correctly but I do not achieve the desired sum in the date and time of the column <code>Actual Departure Date</code></p>