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

Method _modify_keys

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

Source from the content-addressed store, hash-verified

1435 return uuid.uuid4().hex
1436
1437 def _modify_keys(self, k):
1438 if isinstance(k, list):
1439 return [self._modify_keys(kk) for kk in k]
1440 elif isinstance(k, tuple):
1441 return (self._modify_keys(k[0]),) + k[1:]
1442 elif isinstance(k, (int, float)):
1443 k = str(k)
1444 return f"{k}-{self._suffix}"
1445
1446 def _simplify_down(self):
1447 # 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