MCPcopy Create free account
hub / github.com/dask/dask / test_concat_simplify

Function test_concat_simplify

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

Source from the content-addressed store, hash-verified

87
88
89def test_concat_simplify(pdf, df):
90 pdf2 = pdf.copy()
91 pdf2["z"] = 1
92 df2 = from_pandas(pdf2)
93 q = concat([df, df2])[["z", "x"]]
94 result = q.simplify()
95 expected = concat([df[["x"]], df2[["x", "z"]]]).simplify()[["z", "x"]]
96 assert result._name == expected._name
97
98 assert_eq(q, pd.concat([pdf, pdf2])[["z", "x"]])
99
100
101def 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