-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
fillna(None) inconsistent with fillna(1) or fillna(np.NaN) #1972
Comments
Note that fillna(None) is equivalent to fillna(), which means the value parameter is unused. Instead, it uses the method parameter which is by default forward fill. Which is why the NaN after the 0 in column p is filled. |
Note: you can do this using the
|
The
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Migrated from StackOverflow comment : http://stackoverflow.com/questions/12598520/set-index-on-multiple-columns-with-one-empty-column
Applying fillna(None) turns one value to 0 !
Applying fillna(1) works as expected :
Applying fillna(np.NaN) works as expected :
Could be related to #1971
The text was updated successfully, but these errors were encountered: