Skip to content
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

BUG: Call finalize in DataFrame.unstack #37369

Merged
merged 1 commit into from
Oct 24, 2020

Conversation

mzeitlin11
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

This commit adds a step to call __finalize__ in DataFrame.unstack, as motivated by #28283. Adding this step also prevents needing a step to call __finalize__ in DataFrame.pivot since DataFrame.unstack is called before returning, so the xfail for that test was removed as well.

Copy link
Member

@arw2019 arw2019 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mzeitlin11 for the PR!

LGTM

@jreback jreback added the metadata _metadata, .attrs label Oct 24, 2020
@jreback jreback added this to the 1.2 milestone Oct 24, 2020
@jreback jreback merged commit 688923e into pandas-dev:master Oct 24, 2020
@jreback
Copy link
Contributor

jreback commented Oct 24, 2020

thanks @mzeitlin11

@mzeitlin11 mzeitlin11 deleted the fix/GH28283 branch October 24, 2020 03:54
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Oct 26, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metadata _metadata, .attrs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants