Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated fill_na_rows function in clean_data.py #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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