Skip to content

Commit d9f8597

Browse files
committed
fixed formatting
1 parent ce8637a commit d9f8597

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/tests/series/test_arithmetic.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -626,15 +626,13 @@ def test_comp_ops_df_compat(self, left, right, frame_or_series):
626626
# GH 1134
627627
# GH 50083 to clarify that index and columns must be identically labeled
628628
if frame_or_series is not Series:
629-
630-
left = left.to_frame()
631-
right = right.to_frame()
632-
633629
msg = (
634630
"Can only compare identically-labeled "
635631
r"\(both index and columns\) "
636632
f"{frame_or_series.__name__} objects"
637633
)
634+
left = left.to_frame()
635+
right = right.to_frame()
638636
else:
639637
msg = (
640638
f"Can only compare identically-labeled {frame_or_series.__name__} "

0 commit comments

Comments
 (0)