Skip to content

Commit 0018451

Browse files
authored
BUG pandas-dev#30740 moved to test/frames/test_reshape.py
1 parent e1eb158 commit 0018451

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

pandas/tests/reshape/test_reshape.py

-19
Original file line numberDiff line numberDiff line change
@@ -645,22 +645,3 @@ def test_reshaping_multi_index_categorical(self):
645645
index=dti.rename("major"),
646646
)
647647
tm.assert_frame_equal(result, expected)
648-
649-
650-
class TestMultiIndexReshape:
651-
def test_unstacking_multi_index_df(self):
652-
# see gh-30740
653-
df = pd.DataFrame(
654-
{
655-
"name": ["Alice", "Bob"],
656-
"score": [9.5, 8],
657-
"employed": [False, True],
658-
"kids": [0, 0],
659-
"gender": ["female", "male"],
660-
}
661-
)
662-
df = df.set_index(["name", "employed", "kids", "gender"])
663-
df = df.unstack(["gender"], fill_value=0)
664-
expected = df.unstack("employed", fill_value=0).unstack("kids", fill_value=0)
665-
result = df.unstack(["employed", "kids"], fill_value=0)
666-
tm.assert_frame_equal(result, expected)

0 commit comments

Comments
 (0)