What I have currently is a data that looks like this:
| date | hour |
|---|---|
| 21/06/2000 | 6 |
| 22/06/2000 | 6 |
| 23/06/2000 | 6 |
| 24/06/2000 | 6 |
What I would like to achieve:
| date | hour |
|---|---|
| 21/06/2000 | 6 |
| 21/06/2000 | 10 |
| 21/06/2000 | 14 |
| 21/06/2000 | 18 |
| 22/06/2000 | 6 |
| 22/06/2000 | 10 |
| 22/06/2000 | 14 |
| 22/06/2000 | 18 |
| ... so on and so forth | ... |
I am unable to find any solution for this on the internet where I only found ways to add new EMPTY rows which is not what I aim for. Any solution would be appreciated. Thanks in advance!
UPDATE To recreate the dataframe:
import pandas as pd
date = ['21/06/2000', '22/06/2000', '23/06/2000', '24/06/2000']
hour = [6, 6, 6, 6]
df = pd.DataFrame(list(zip(date, hour)),
columns =['date', 'hour'])