I have a pandas dataframe that has empty input. I made a dummy dataframe below. Is there a way to merge on the date time and have the values be added to the empty space. There will always be empty space for the data to fit in. I have shown dummy result of what I am trying to achieve.
Any help or guidance would be highly appriciated!
Date time LifeTime1 LifeTime2 LifeTime3 LifeTime4 LifeTime5
2020-02-11 17:30 6 7 3
2020-02-11 17:30 3 3
2020-02-12 15:30 2 2 3
2020-02-16 14:30 4 1
2020-02-16 14:30 7
2020-02-16 14:30 8 2
Results:
Date time LifeTime1 LifeTime2 LifeTime3 LifeTime4 LifeTime5
2020-02-11 17:30 6 7 3 3 3
2020-02-12 15:30 2 2 3
2020-02-16 14:30 4 7 8 2 1