MCPcopy
hub / github.com/dask/dask / test_concat_simplify

Function test_concat_simplify

dask/dataframe/dask_expr/tests/test_concat.py:95–104  ·  view source on GitHub ↗
(pdf, df)

Source from the content-addressed store, hash-verified

93
94
95def test_concat_simplify(pdf, df):
96 pdf2 = pdf.copy()
97 pdf2["z"] = 1
98 df2 = from_pandas(pdf2)
99 q = concat([df, df2])[["z", "x"]]
100 result = q.simplify()
101 expected = concat([df[["x"]], df2[["x", "z"]]]).simplify()[["z", "x"]]
102 assert result._name == expected._name
103
104 assert_eq(q, pd.concat([pdf, pdf2])[["z", "x"]])
105
106
107def test_concat_simplify_projection_not_added(pdf, df):

Callers

nothing calls this directly

Calls 5

from_pandasFunction · 0.90
concatFunction · 0.90
assert_eqFunction · 0.90
copyMethod · 0.45
simplifyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…