Skip to content

Commit 0092a7c

Browse files
author
wdyy20041223
committed
TST: Add regression tests for enlarging MultiIndex with None keys (GH#59153)
1 parent 1199d44 commit 0092a7c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/tests/indexing/multiindex/test_setitem.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,11 @@ def test_setitem_enlargement_none_key_indexslice_retrieval(self):
546546
)
547547

548548
result = df.loc[idx[:, None], :]
549-
expected = DataFrame([[20]], index=MultiIndex.from_tuples([("B", None)]), columns=["val"])
549+
expected = DataFrame(
550+
[[20]],
551+
index=MultiIndex.from_tuples([("B", None)]),
552+
columns=["val"],
553+
)
550554
tm.assert_frame_equal(result, expected)
551555

552556
# Enlarge using IndexSlice with None

0 commit comments

Comments
 (0)