Skip to content

Commit 451621b

Browse files
update test expectations (don't convert to float64 when Int64 or UInt64 does the trick)
1 parent e15bde9 commit 451621b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/frame/methods/test_combine_first.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ def test_combine_first_with_nan_multiindex():
475475
"d": [1.0, 4.0, np.nan, 2.0, 5.0, np.nan, np.nan, 3.0, np.nan, 6.0, np.nan],
476476
},
477477
index=mi_expected,
478+
dtype="Int64",
478479
)
479480
tm.assert_frame_equal(res, expected)
480481

@@ -521,6 +522,7 @@ def test_combine_first_duplicates_rows_for_nan_index_values():
521522
index=MultiIndex.from_arrays(
522523
[[1, 2, 3, 4], [np.nan, 5, 6, 7]], names=["a", "b"]
523524
),
525+
dtype="Int64",
524526
)
525527
combined = df1.combine_first(df2)
526528
tm.assert_frame_equal(combined, expected)

0 commit comments

Comments
 (0)