Move to a new DataFrame backend Parameters ---------- backend : str, Optional The name of the new backend to move to. The default is the current "dataframe.backend" configuration. Returns ------- DataFrame, Series or Index
(self, backend: str | None = None, **kwargs)
| 2562 | return [Delayed(k, graph, layer=layer) for k in keys] |
| 2563 | |
| 2564 | def to_backend(self, backend: str | None = None, **kwargs): |
| 2565 | """Move to a new DataFrame backend |
| 2566 | |
| 2567 | Parameters |
| 2568 | ---------- |
| 2569 | backend : str, Optional |
| 2570 | The name of the new backend to move to. The default |
| 2571 | is the current "dataframe.backend" configuration. |
| 2572 | |
| 2573 | Returns |
| 2574 | ------- |
| 2575 | DataFrame, Series or Index |
| 2576 | """ |
| 2577 | from dask.dataframe.dask_expr._backends import dataframe_creation_dispatch |
| 2578 | |
| 2579 | # Get desired backend |
| 2580 | backend = backend or dataframe_creation_dispatch.backend |
| 2581 | # Check that "backend" has a registered entrypoint |
| 2582 | backend_entrypoint = dataframe_creation_dispatch.dispatch(backend) |
| 2583 | # Call `DataFrameBackendEntrypoint.to_backend` |
| 2584 | return backend_entrypoint.to_backend(self, **kwargs) |
| 2585 | |
| 2586 | @derived_from(pd.Series) |
| 2587 | def dot(self, other, meta=no_default): |