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