()
| 25 | |
| 26 | |
| 27 | def test_get_dummies_index(): |
| 28 | # GH9980, GH8028 |
| 29 | idx = Index(["a|b", "a|c", "b|c"]) |
| 30 | result = idx.str.get_dummies("|") |
| 31 | |
| 32 | expected = MultiIndex.from_tuples( |
| 33 | [(1, 1, 0), (1, 0, 1), (0, 1, 1)], names=("a", "b", "c") |
| 34 | ) |
| 35 | tm.assert_index_equal(result, expected) |
| 36 | |
| 37 | |
| 38 | # GH#47872 |
nothing calls this directly
no test coverage detected