MCPcopy
hub / github.com/dask/dask / reshape

Method reshape

dask/array/core.py:2255–2268  ·  view source on GitHub ↗

Reshape array to new shape Refer to :func:`dask.array.reshape` for full documentation. See Also -------- dask.array.reshape : equivalent function

(self, *shape, merge_chunks=True, limit=None)

Source from the content-addressed store, hash-verified

2253 return choose(self, choices)
2254
2255 def reshape(self, *shape, merge_chunks=True, limit=None):
2256 """Reshape array to new shape
2257
2258 Refer to :func:`dask.array.reshape` for full documentation.
2259
2260 See Also
2261 --------
2262 dask.array.reshape : equivalent function
2263 """
2264 from dask.array.reshape import reshape
2265
2266 if len(shape) == 1 and not isinstance(shape[0], Number):
2267 shape = shape[0]
2268 return reshape(self, shape, merge_chunks=merge_chunks, limit=limit)
2269
2270 def topk(self, k, axis=-1, split_every=None):
2271 """The top k elements of an array.

Callers 15

_vindex_arrayFunction · 0.95
percentileFunction · 0.95
random_state_dataFunction · 0.80
random_state_data_pythonFunction · 0.80
_cov_corr_combineFunction · 0.80
reduce_stateFunction · 0.80
random_stateMethod · 0.80
test_from_arrayFunction · 0.80
test_coerceFunction · 0.80
test_boolFunction · 0.80
test_xarray_8414Function · 0.80
test_blockwise_cullFunction · 0.80

Calls 1

reshapeFunction · 0.90

Tested by 15

test_from_arrayFunction · 0.64
test_coerceFunction · 0.64
test_boolFunction · 0.64
test_xarray_8414Function · 0.64
test_blockwise_cullFunction · 0.64
test_fusion_barrier_taskFunction · 0.64
test_compute_arrayFunction · 0.64
test_persist_arrayFunction · 0.64
test_array_delayedFunction · 0.64
only_onceFunction · 0.64