-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Series.fillna is altering None values of unspecified columns #40498
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
Labels
Comments
Hi @RSchweiger, thanks for the clear report! I can reproduce this on current master, investigations welcome to fix. |
4 tasks
I don't buy this is a bug at all: #40509 (review) |
@jreback @RSchweiger @mzeitlin11 I saw that this is still reproducible on Master, labeled as a 'Bug', and Unassigned. I was wondering if I could work on this? |
Go ahead! Commentary in #40509 might be helpful. |
take |
4 tasks
4 tasks
removed milestone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
series = pd.Series({'1':1,'2':None,'3':np.nan, '4':''})
will create a series which looks like:
When using the fillna method on this series on index 3 it changes also the entry in index 2!
This will result in a output as follows:
Problem:
The value at index 2 changed from None to NaN.
Expected Behaviour:
The value at index 2 should never be touched when using fillna and specifying the indices you want to alter.
The text was updated successfully, but these errors were encountered: