MCPcopy
hub / github.com/dask/dask / _modify_keys

Method _modify_keys

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

Source from the content-addressed store, hash-verified

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