Pandas-Backend Entrypoint Class for Dask-Expressions Note that all DataFrame-creation functions are defined and registered 'in-place'.
| 29 | |
| 30 | |
| 31 | class PandasBackendEntrypoint(DataFrameBackendEntrypoint): |
| 32 | """Pandas-Backend Entrypoint Class for Dask-Expressions |
| 33 | |
| 34 | Note that all DataFrame-creation functions are defined |
| 35 | and registered 'in-place'. |
| 36 | """ |
| 37 | |
| 38 | @classmethod |
| 39 | def to_backend(cls, data, **kwargs): |
| 40 | from dask.dataframe.dask_expr._collection import new_collection |
| 41 | |
| 42 | return new_collection(ToPandasBackend(data, kwargs)) |
| 43 | |
| 44 | |
| 45 | dataframe_creation_dispatch.register_backend("pandas", PandasBackendEntrypoint()) |