MCPcopy
hub / github.com/dask/dask / test_dataframe_explode

Function test_dataframe_explode

dask/dataframe/tests/test_dataframe.py:4791–4799  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4789
4790@pytest.mark.skip_with_pyarrow_strings # has to be array to explode
4791def test_dataframe_explode():
4792 df = pd.DataFrame({"A": [[1, 2, 3], "foo", [3, 4]], "B": 1})
4793 exploded_df = df.explode("A")
4794
4795 ddf = dd.from_pandas(df, npartitions=2)
4796
4797 exploded_ddf = ddf.explode("A")
4798 assert ddf.divisions == exploded_ddf.divisions
4799 assert_eq(exploded_ddf.compute(), exploded_df)
4800
4801
4802@pytest.mark.skip_with_pyarrow_strings # has to be array to explode

Callers

nothing calls this directly

Calls 4

explodeMethod · 0.95
assert_eqFunction · 0.90
explodeMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…