Skip to content

Commit 302907d

Browse files
update test
1 parent 7486b60 commit 302907d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/frame/test_apply.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,9 @@ def apply_list(row):
706706
def test_apply_noreduction_tzaware_object(self):
707707
# https://github.com/pandas-dev/pandas/issues/31505
708708
df = pd.DataFrame({"foo": [pd.Timestamp("2020", tz="UTC")]}, dtype="object")
709-
result = df.apply(lambda col: col.copy())
709+
result = df.apply(lambda x: x)
710+
tm.assert_frame_equal(result, df)
711+
result = df.apply(lambda x: x.copy())
710712
tm.assert_frame_equal(result, df)
711713

712714

0 commit comments

Comments
 (0)