I have a dataframe, which is resampled to higher sampling rate like from 8hz to 16 hz.using
new_df = new_df.resample('62.5L').ffill()
instead of using ffill()
, I tried to interpolate values using
interpolated = new_df.interpolate(method='linear', axis=0)
but the new data frame is having "nan" filled rather than interpolated values
Can anyone please help me in interpolating without filling nan in the columns !