Getting wrong values after merging two dataframe on datetime
问题 I want to merge a time serie of % humidity with a range of datetime created as expected, to fill missing records (or rows) with NaN and obtain a time serie based on 15min records (as long as the sensor is designed for). Data of humidity following recorded datetime : humdt = pd.DataFrame(data = data["la-salade"][["datetime","humidite"]]) datetime humidite 0 2019-07-09 08:30:00 87 1 2019-07-09 11:00:00 87 2 2019-07-09 17:30:00 82 3 2019-07-09 23:30:00 80 4 2019-07-11 06:15:00 79 5 2019-07-19 14