()
| 4803 | |
| 4804 | @pytest.mark.skip_with_pyarrow_strings # has to be array to explode |
| 4805 | def test_dataframe_explode(): |
| 4806 | df = pd.DataFrame({"A": [[1, 2, 3], "foo", [3, 4]], "B": 1}) |
| 4807 | exploded_df = df.explode("A") |
| 4808 | |
| 4809 | ddf = dd.from_pandas(df, npartitions=2) |
| 4810 | |
| 4811 | exploded_ddf = ddf.explode("A") |
| 4812 | assert ddf.divisions == exploded_ddf.divisions |
| 4813 | assert_eq(exploded_ddf.compute(), exploded_df) |
| 4814 | |
| 4815 | |
| 4816 | @pytest.mark.skip_with_pyarrow_strings # has to be array to explode |