Skip to content

Commit 83a0c24

Browse files
committed
test_frame_apply.py warning fixup
1 parent 138c787 commit 83a0c24

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/source/whatsnew/v0.19.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ Comparison operators raise ``ValueError`` when ``.index`` are different.
654654
655655
In [3]: df1 == df2
656656
Out[3]:
657-
ValueError: Can only compare identically-labeled DataFrame objects
657+
ValueError: Can only compare identically-labeled (both index and columns) DataFrame objects
658658
659659
Logical operators
660660
"""""""""""""""""

pandas/tests/apply/test_frame_apply.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,8 @@ def test_with_dictlike_columns_with_datetime():
836836
df["author"] = ["X", "Y", "Z"]
837837
df["publisher"] = ["BBC", "NBC", "N24"]
838838
df["date"] = pd.to_datetime(
839-
["17-10-2010 07:15:30", "13-05-2011 08:20:35", "15-01-2013 09:09:09"]
839+
["17-10-2010 07:15:30", "13-05-2011 08:20:35", "15-01-2013 09:09:09"],
840+
dayfirst=True,
840841
)
841842
result = df.apply(lambda x: {}, axis=1)
842843
expected = Series([{}, {}, {}])

0 commit comments

Comments
 (0)