Skip to content

Commit

Permalink
Show column types in assert_subset_df
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Dec 5, 2024
1 parent 2296982 commit 2865f26
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/util/assert_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,12 @@ def assert_subset_df(
columns = [column.lower() for column in columns]

for column in columns: # noqa: WPS528
difference = ~small_pdf[column].isin(large_pdf[column])
assert not difference.all(), small_pdf[difference]
small_column = small_pdf[column]
large_column = large_pdf[column]
different_indices = ~small_column.isin(large_column)
assert not different_indices.all(), (
column,
small_column.dtype,
large_column.dtype,
small_pdf[different_indices],
)

0 comments on commit 2865f26

Please sign in to comment.