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