Skip to content

Updated fill_na_rows function in clean_data.py - #24

Open
ashish-kamboj wants to merge 1 commit into
sid-the-coder:masterfrom
ashish-kamboj:patch-3
Open

Updated fill_na_rows function in clean_data.py#24
ashish-kamboj wants to merge 1 commit into
sid-the-coder:masterfrom
ashish-kamboj:patch-3

Conversation

@ashish-kamboj

Copy link
Copy Markdown

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

1 participant