I have a (pandas) dataset that consists of a datetime index and several columns for different locations indicating wind speeds.
How can I duplicate the rows two times and always add one hour to the datetime index?
| Date | AL | BA |
|---|---|---|
| 2000-01-01 00:00:00 | 2.994117 | 4.658971 |
| 2000-01-01 03:00:00 | 3.367553 | 5.964710 |
| 2000-01-01 06:00:00 | 3.431327 | 6.633670 |
I have used concat to multiply the rows and could later on also add a new auto_increment column for the hours, but this is not really elegant.