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

Method _modify_keys

dask/_expr.py:1427–1434  ·  view source on GitHub ↗
(self, k)

Source from the content-addressed store, hash-verified

1425 return uuid.uuid4().hex
1426
1427 def _modify_keys(self, k):
1428 if isinstance(k, list):
1429 return [self._modify_keys(kk) for kk in k]
1430 elif isinstance(k, tuple):
1431 return (self._modify_keys(k[0]),) + k[1:]
1432 elif isinstance(k, (int, float)):
1433 k = str(k)
1434 return f"{k}-{self._suffix}"
1435
1436 def _simplify_down(self):
1437 # FIXME: Shuffling cannot be rewritten since the barrier key is

Callers 2

__dask_keys__Method · 0.95
__dask_graph__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected