Skip to content

Conversation

@Tsmith-77
Copy link
Contributor

@Tsmith-77Tsmith-77 changed the title RefctorRefactor test_combine_first dataframeDec 8, 2025
combined=tail.combine_first(head)
assert (combined["A"][:10] ==0).all()

# no overlap
Copy link
ContributorAuthor

@Tsmith-77Tsmith-77Dec 8, 2025

Choose a reason for hiding this comment

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

The no overlap case had the same setup as the disjoint case, just with assertions that had a different focus, so I moved those assertions up into test_combine_first_disjoint and then removed the reverse overlap code.



@pytest.fixture
defreordered_frame(float_frame):
Copy link
Member

Choose a reason for hiding this comment

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

Could you just inline this logic in the only 2 tests where this is used?

@mroeschkemroeschke added the Testing pandas testing functions or related to the test suite label Dec 8, 2025
@mroeschkemroeschke added this to the 3.0 milestone Dec 10, 2025
@mroeschkemroeschke merged commit 66e22c5 into pandas-dev:mainDec 10, 2025
41 checks passed
@mroeschke
Copy link
Member

Thanks @Tsmith-77

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Testingpandas testing functions or related to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

combine_first not unionising the columns of empty dataframes

2 participants

@Tsmith-77@mroeschke