Skip to content

Commit 796b25b

Browse files
committed
fix test failure
1 parent 60231ae commit 796b25b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: pandas/tests/generic/test_finalize.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,11 @@
350350
(pd.DataFrame, frame_data, operator.methodcaller("describe")),
351351
(pd.Series, ([1, 2],), operator.methodcaller("pct_change")),
352352
(pd.DataFrame, frame_data, operator.methodcaller("pct_change")),
353-
(pd.Series, ([1],), operator.methodcaller("transform", lambda x: x - x.min())),
353+
(
354+
pd.Series,
355+
([1],),
356+
operator.methodcaller("transform", lambda x: x - x.min(), series_ops_only=True),
357+
),
354358
(
355359
pd.DataFrame,
356360
frame_mi_data,

0 commit comments

Comments
 (0)