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)
| 2528 | return [Delayed(k, graph, layer=layer) for k in keys] |
| 2529 | |
| 2530 | def to_backend(self, backend: str | None = None, **kwargs): |
| 2531 | """Move to a new DataFrame backend |
| 2532 | |
| 2533 | Parameters |
| 2534 | ---------- |
| 2535 | backend : str, Optional |
| 2536 | The name of the new backend to move to. The default |
| 2537 | is the current "dataframe.backend" configuration. |
| 2538 | |
| 2539 | Returns |
| 2540 | ------- |
| 2541 | DataFrame, Series or Index |
| 2542 | """ |
| 2543 | from dask.dataframe.dask_expr._backends import dataframe_creation_dispatch |
| 2544 | |
| 2545 | # Get desired backend |
| 2546 | backend = backend or dataframe_creation_dispatch.backend |
| 2547 | # Check that "backend" has a registered entrypoint |
| 2548 | backend_entrypoint = dataframe_creation_dispatch.dispatch(backend) |
| 2549 | # Call `DataFrameBackendEntrypoint.to_backend` |
| 2550 | return backend_entrypoint.to_backend(self, **kwargs) |
| 2551 | |
| 2552 | @derived_from(pd.Series) |
| 2553 | def dot(self, other, meta=no_default): |