Skip to content

Conversation

@jbrockmendel
Copy link
Member

@pkuca
Copy link

pkuca commented Mar 3, 2022

Is this fix specific to fillna() usage with inplace=True? Would it also work with default inplace=False?

@jbrockmendel
Copy link
Member Author

Would it also work with default inplace=False?

No.

@pkuca
Copy link

pkuca commented Mar 3, 2022

If that's out of scope for this PR I can open a new issue describing what I'm seeing after updating to 1.4.1.

It's actually the same as #46149, except my usage is:

df = df["field"].fillna("")

Of course I can just loc on pd.isna() and manually set to "" but it'd be great to not need to update all of our usages of fillna().

@jbrockmendel
Copy link
Member Author

If that's out of scope for this PR I can open a new issue describing what I'm seeing after updating to 1.4.1.

Please do.

@jreback jreback added the Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate label Mar 3, 2022
@jreback
Copy link
Contributor

jreback commented Mar 3, 2022

@jbrockmendel ok to backport this if you can add a note in 1.4.2

@jreback jreback added this to the 1.4.2 milestone Mar 5, 2022
@jreback jreback merged commit 221c3aa into pandas-dev:main Mar 5, 2022
@jreback
Copy link
Contributor

jreback commented Mar 5, 2022

@meeseeksdev backport 1.4.x

@lumberbot-app
Copy link

lumberbot-app bot commented Mar 5, 2022

Something went wrong ... Please have a look at my logs.

@jbrockmendel jbrockmendel deleted the perf-inplace branch March 5, 2022 23:54
jreback pushed a commit that referenced this pull request Mar 6, 2022
@simonjayhawkins simonjayhawkins added the Regression Functionality that used to work in a prior pandas version label Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Regression Functionality that used to work in a prior pandas version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PERF: Series.fillna (that is part of DataFrame) with inplace=True high memory usage / memory leaking

4 participants