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

Function test_analyze

dask/dataframe/dask_expr/tests/test_diagnostics.py:31–40  ·  view source on GitHub ↗
(df, client, tmpdir)

Source from the content-addressed store, hash-verified

29
30@pytest.mark.filterwarnings("ignore:DataFrameGroupBy.apply operated ")
31def test_analyze(df, client, tmpdir):
32 pytest.importorskip("crick")
33 filename = str(tmpdir / "analyze")
34 expr = df.groupby(df.columns[1]).apply(
35 lambda x: x, meta=df._meta.groupby(df.columns[1]).apply(lambda x: x)
36 )
37 digraph = expr.analyze(filename=filename)
38 assert os.path.exists(filename + ".svg")
39 for exp in expr.optimize().walk():
40 assert any(exp._name in el for el in digraph.body)

Callers

nothing calls this directly

Calls 6

anyFunction · 0.85
applyMethod · 0.45
groupbyMethod · 0.45
analyzeMethod · 0.45
walkMethod · 0.45
optimizeMethod · 0.45

Tested by

no test coverage detected