Jan-19-2022, 08:55 AM
(Jan-19-2022, 08:51 AM)perfringo Wrote:(Jan-19-2022, 07:47 AM)amdi40 Wrote: as it can be seen, nan values would be inserted in the wrong places too
Nan values will be inserted if indices are not in both dataframes. In order to tackle the problem indices in second dataframe (with zero values) must be created differently so that (1) all datetimes in source data are present in second dataframe (2) create indices of second dataframe so that two minutes interval resets based on value on previous and next row in source data
Thank you for the answer again! i will try to see if i can figure out how to do that :)