()
| 216 | |
| 217 | |
| 218 | def test_explode_sets(): |
| 219 | # https://github.com/pandas-dev/pandas/issues/35614 |
| 220 | df = pd.DataFrame({"a": [{"x", "y"}], "b": [1]}, index=[1]) |
| 221 | result = df.explode(column="a").sort_values(by="a") |
| 222 | expected = pd.DataFrame({"a": ["x", "y"], "b": [1, 1]}, index=[1, 1]) |
| 223 | tm.assert_frame_equal(result, expected) |
| 224 | |
| 225 | |
| 226 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected