MCPcopy Index your code
hub / github.com/dask/dask / assert_sane_keynames

Function assert_sane_keynames

dask/dataframe/utils.py:614–624  ·  view source on GitHub ↗
(ddf)

Source from the content-addressed store, hash-verified

612
613
614def assert_sane_keynames(ddf):
615 if hasattr(ddf, "__dask_graph__"):
616 dsk = ddf.optimize()
617 dsk = dsk.__dask_graph__()
618 for k in dsk:
619 while isinstance(k, tuple):
620 k = k[0]
621 assert isinstance(k, (str, bytes))
622 assert len(k) < 100
623 assert " " not in k
624 assert k.split("-")[0].isidentifier(), k
625
626
627def assert_dask_dtypes(ddf, res, numeric_equal=True):

Callers 1

assert_eqFunction · 0.85

Calls 3

splitMethod · 0.80
optimizeMethod · 0.45
__dask_graph__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…