Skip to content

Commit bc754a7

Browse files
authored
Update test_compare.py
1 parent f82decb commit bc754a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/frame/methods/test_compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def test_compare_unaligned_objects():
182182
df1.compare(df2)
183183

184184

185-
def test_compare_suffixes():
185+
def test_compare_result_names():
186186
# 44354
187187
df1 = pd.DataFrame(
188188
{"col1": ["a", "b", "c"], "col2": [1.0, 2.0, np.nan], "col3": [1.0, 2.0, 3.0]},
@@ -194,7 +194,7 @@ def test_compare_suffixes():
194194
"col3": [1.0, 2.0, np.nan],
195195
},
196196
)
197-
result = df1.compare(df2, suffixes=("left", "right"))
197+
result = df1.compare(df2, result_names=("left", "right"))
198198
expected = pd.DataFrame(
199199
{
200200
("col1", "left"): {0: "a", 2: np.nan},

0 commit comments

Comments
 (0)