I have two datetime ranges in pandas dataframe. The resolution is one minute e.g of datetime 2021-03-26 10:23:00.
The dataframe A has the correct datetimes but the dataframe B is missing some datetimes. Is there any way to find which datetimes are missing from dataframe B and create a new dataframe C with the observations of dataframe A but with the datetimes of dataframe B?
Dataframe B
Dates | Car |
---|---|
2021-03-26 10:23:00 | 1 |
2021-03-26 10:24:00 | 0 |
2021-03-26 10:26:00 | 1 |
2021-03-26 10:29:00 | 0 |
Dataframe A
Dates |
---|
2021-03-26 10:23:00 |
2021-03-26 10:24:00 |
2021-03-26 10:25:00 |
2021-03-26 10:26:00 |