Skip to content

Commit 93cf66c

Browse files
author
wdyy20041223
committed
TST: Add regression tests for enlarging MultiIndex with None keys (GH#59153)
1 parent 0004ec6 commit 93cf66c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/indexing/multiindex/test_setitem.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ def test_setitem_enlargement_multiindex_with_none(self):
509509
[[0, 6], [1, 5], [2, 4], [3, 7], [12, 13]],
510510
index=expected_index,
511511
columns=[0, 1],
512+
dtype=float,
512513
)
513514
tm.assert_frame_equal(df, expected)
514515

@@ -542,6 +543,7 @@ def test_setitem_enlargement_multiindex_multiple_none(self):
542543
[[1, 2], [3, 4], [5, 6], [7, 8]],
543544
index=expected_index,
544545
columns=["x", "y"],
546+
dtype=float,
545547
)
546548
tm.assert_frame_equal(df, expected)
547549

0 commit comments

Comments
 (0)