Skip to content

WARN: std and var showing RuntimeWarning for ea dtype with one element #52518

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
Apr 7, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Apr 7, 2023

@phofl phofl added this to the 2.0.1 milestone Apr 7, 2023
@phofl phofl added Regression Functionality that used to work in a prior pandas version NA - MaskedArrays Related to pd.NA and nullable extension arrays Reduction Operations sum, mean, min, max, etc. labels Apr 7, 2023
@mroeschke mroeschke merged commit 4d6ca9d into pandas-dev:main Apr 7, 2023
@mroeschke
Copy link
Member

Thanks @phofl

@lumberbot-app
Copy link

lumberbot-app bot commented Apr 7, 2023

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
git checkout 2.0.x
git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
git cherry-pick -x -m1 4d6ca9d74722ab6c74f3e8541110342fcc0a1f35
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
git commit -am 'Backport PR #52518: WARN: std and var showing RuntimeWarning for ea dtype with one element'
  1. Push to a named branch:
git push YOURFORK 2.0.x:auto-backport-of-pr-52518-on-2.0.x
  1. Create a PR against branch 2.0.x, I would have named this PR:

"Backport PR #52518 on branch 2.0.x (WARN: std and var showing RuntimeWarning for ea dtype with one element)"

And apply the correct labels and milestones.

Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon!

Remember to remove the Still Needs Manual Backport label once the PR gets merged.

If these instructions are inaccurate, feel free to suggest an improvement.

phofl added a commit to phofl/pandas that referenced this pull request Apr 8, 2023
pandas-dev#52518)

* WARN: std and var showing RuntimeWarning for ea dtype with one element

* Filter warnings

* Fix test

(cherry picked from commit 4d6ca9d)
mroeschke pushed a commit that referenced this pull request Apr 8, 2023
…Warning for ea dtype with one element (#52539)

WARN: std and var showing RuntimeWarning for ea dtype with one element (#52518)

* WARN: std and var showing RuntimeWarning for ea dtype with one element

* Filter warnings

* Fix test

(cherry picked from commit 4d6ca9d)
@phofl phofl deleted the 52515 branch April 11, 2023 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NA - MaskedArrays Related to pd.NA and nullable extension arrays Reduction Operations sum, mean, min, max, etc. Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: RuntimeWarning on describe for a single element Series of dtype Float64
2 participants