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

Method reshape

dask/array/core.py:2261–2274  ·  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

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

Callers 15

_vindex_arrayFunction · 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
test_fusion_barrier_taskFunction · 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