df.interpolate(method='linear', limit_direction='forward', axis=0, inplace=True) dff.interpolate(method='polynomial', order=3, limit=2, axis=0, limit_direction='both', inplace=True)