Skip to content

Conversation

@ashish-kamboj
Copy link

Changed interpolate method to 'linear' and limit_direction to 'both'

As with the method='pad' if index 0 value is NaN then this method won't will the index 0 value (it will remain NaN after interpolation also). Also with method='pad' we can't have limit_direction='backward'

It's better to choose method='linear' and limit_direction='both' (because there will be chances that first and last index values can be NaN, it will be easily interpolated if limit_direction='both')

…n='both'

Changed interpolate method to 'linear' and limit_direction to 'both'

As with the method='pad' if index 0 value is NaN then this method won't will the index 0 value (it will remain NaN after interpolation also). Also with method='pad' we can't have limit_direction='backward'

It's better to choose method='linear' and limit_direction='both' (because there will be chances that first and last index values can be NaN, it will be easily interpolated if limit_direction='both')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant