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

Method _modify_keys

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

Source from the content-addressed store, hash-verified

1372 return uuid.uuid4().hex
1373
1374 def _modify_keys(self, k):
1375 if isinstance(k, list):
1376 return [self._modify_keys(kk) for kk in k]
1377 elif isinstance(k, tuple):
1378 return (self._modify_keys(k[0]),) + k[1:]
1379 elif isinstance(k, (int, float)):
1380 k = str(k)
1381 return f"{k}-{self._suffix}"
1382
1383 def _simplify_down(self):
1384 # 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