Skip to content

Conversation

@Tsmith-77
Copy link
Contributor

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

# no overlap
Copy link
Contributor Author

@Tsmith-77 Tsmith-77 Dec 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
def reordered_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?

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Testing pandas 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