Skip to content

Call __finalize__ in Dataframe.combine and Dataframe.combine_first #52886

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 3 commits into from
Apr 25, 2023

Conversation

jinlixiao
Copy link
Contributor

@jinlixiao
Copy link
Contributor Author

Here is my thought: In these two cases, I just let the attr from the first dataframe to propagate to the result. I think this is the most straightforward way and requires the least overhead. Let me know if this doesn't seem right.

@jinlixiao jinlixiao marked this pull request as draft April 24, 2023 14:43
@mroeschke mroeschke added the metadata _metadata, .attrs label Apr 24, 2023
@jinlixiao jinlixiao marked this pull request as ready for review April 25, 2023 02:21
@mroeschke mroeschke added this to the 2.1 milestone Apr 25, 2023
@mroeschke mroeschke merged commit 61738c4 into pandas-dev:main Apr 25, 2023
@mroeschke
Copy link
Member

Thanks @jinlixiao

Rylie-W pushed a commit to Rylie-W/pandas that referenced this pull request May 19, 2023
…andas-dev#52886)

* Fixed metadata propagation in Dataframe.combine and Dataframe.combine_first

* fix local var override
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
…andas-dev#52886)

* Fixed metadata propagation in Dataframe.combine and Dataframe.combine_first

* fix local var override
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.

2 participants