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

Function insert

dask/utils.py:1161–1169  ·  view source on GitHub ↗

>>> insert(('a', 'b', 'c'), 0, 'x') ('x', 'b', 'c')

(tup, loc, val)

Source from the content-addressed store, hash-verified

1159
1160
1161def insert(tup, loc, val):
1162 """
1163
1164 >>> insert(('a', 'b', 'c'), 0, 'x')
1165 ('x', 'b', 'c')
1166 """
1167 L = list(tup)
1168 L[loc] = val
1169 return tuple(L)
1170
1171
1172def memory_repr(num):

Callers 2

groupby_tasksFunction · 0.90
_layerMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected