Skip to content

BUG: Index.fillna silently ignoring 'downcast' kwarg #44873

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

Merged
merged 4 commits into from
Dec 14, 2021

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Dec 14, 2021

Decided to raise rather than silently give incorrect result. Haven't decided about deprecation, since there's an argument to be made for trying to make the downcast kwarg/behavior match Series.fillna (which is itself a can of worms).

Found along the way that CategoricalIndex.fillna can be removed; can make this a separate PR upon request.

@jreback jreback added Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Dec 14, 2021
@jreback
Copy link
Contributor

jreback commented Dec 14, 2021

can you add a whatsnew note. also were some examples in the OP which maybe worth adding as tests

@jreback jreback added this to the 1.4 milestone Dec 14, 2021
@jreback jreback merged commit 981f125 into pandas-dev:master Dec 14, 2021
@jbrockmendel jbrockmendel deleted the depr-index-fillna-downcast branch December 14, 2021 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Index.fillna ignores 'downcast'
2 participants