Rephrased Question:
I am actually extracting data from several excel files monitoring my daily calorie intake. I managed to use list comprehension to generate the dates.
My Input:
Date Time calories duration
# 0 22/5/2021 Morning 420 50
# 1 22/5/2021 Afternoon 380 40
# 2 24/5/2021 Morning 390 45
# 3 24/5/2021 Afternoon 400 50
# 4 26/5/2021 Morning 350 45
# 5 26/5/2021 Afternoon 280 50
# 6 27/5/2021 Morning 300 44
# 7 27/5/2021 Afternoon 430 58
The output should look something like this:
Date Time calories duration
0 22/5/2021 Morning 420 50
1 22/5/2021 Afternoon 380 40
2 23/5/2021 Morning Nan Nan
3 23/5/2021 Afternoon Nan Nan
4 24/5/2021 Morning 390 45
5 24/5/2021 Afternoon 400 50
6 25/5/2021 Morning Nan Nan
7 25/5/2021 Afternoon Nan Nan
8 26/5/2021 Morning 350 45
9 26/5/2021 Afternoon 280 50
10 27/5/2021 Morning 300 44
11 27/5/2021 Afternoon 430 58