Skip to content

Commit 69c9012

Browse files
committed
adding comment
1 parent 4b122d6 commit 69c9012

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

skrub/tests/test_on_subframe.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ def test_empty_output(df_module, use_fit_transform):
7171
out = transformer.fit_transform(df)
7272
else:
7373
out = transformer.fit(df).transform(df)
74+
# Selecting no columns to have an empty dataframe
7475
selected = s.select(df, ())
7576

77+
# I need to add a special case for pandas 3.0 here because the type of the
78+
# empty dataframe with pandas 3.0 is different from that of out, but here
79+
# we don't care about that dtype.
7680
if sbd.is_pandas(df) and parse(pd.__version__).major >= parse("3.0.0").major:
7781
out = sbd.to_numpy(out)
7882
selected = sbd.to_numpy(selected)

0 commit comments

Comments
 (0)