I have data that is in the format shown below:
    ID          qi        di            b       start_date   end_date    delta_t
0  1232111  363.639856  0.902817  2.000000e+01 2020-07-01 2021-05-05      230
1  2445252  304.377500  1.000000  2.000000e+01 2020-07-09 2021-05-06      222
2  3323232   16.047443  0.017908  3.556858e-09 2020-07-10 2021-05-26      221
3  4444242  190.799229  0.162360  2.000000e+01 2020-07-11 2021-05-06      220
4  5555366  153.341044  0.000195  2.730887e-04 2020-07-01 2021-05-26      230
5  6343423  518.195900  0.000073  1.516531e+01 2020-07-12 2021-05-10      219
I would like to have something like the frame shown below where each ID is expanded to contain rows from 0 to delta_t.
     ID          qi        di            b       start_date   end_date    delta_t
 0  1232111  363.639856  0.902817  2.000000e+01 2020-07-01 2021-05-05      0
 0  1232111  363.639856  0.902817  2.000000e+01 2020-07-01 2021-05-05      1
 0  1232111  363.639856  0.902817  2.000000e+01 2020-07-01 2021-05-05      2
 0  1232111  363.639856  0.902817  2.000000e+01 2020-07-01 2021-05-05      3
 0  1232111  363.639856  0.902817  2.000000e+01 2020-07-01 2021-05-05      4
...
 0  1232111  363.639856  0.902817  2.000000e+01 2020-07-01 2021-05-05      230
Any help is appreciated!
 
     
    