Move to a new Array backend Parameters ---------- backend : str, Optional The name of the new backend to move to. The default is the current "array.backend" configuration. Returns ------- Array
(self, backend: str | None = None, **kwargs)
| 1858 | return from_dask_array(self, columns=columns, index=index, meta=meta) |
| 1859 | |
| 1860 | def to_backend(self, backend: str | None = None, **kwargs): |
| 1861 | """Move to a new Array backend |
| 1862 | |
| 1863 | Parameters |
| 1864 | ---------- |
| 1865 | backend : str, Optional |
| 1866 | The name of the new backend to move to. The default |
| 1867 | is the current "array.backend" configuration. |
| 1868 | |
| 1869 | Returns |
| 1870 | ------- |
| 1871 | Array |
| 1872 | """ |
| 1873 | from dask.array.creation import to_backend |
| 1874 | |
| 1875 | return to_backend(self, backend=backend, **kwargs) |
| 1876 | |
| 1877 | def __bool__(self): |
| 1878 | if self.size > 1: |