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)
| 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. |