MCPcopy Create free account
hub / github.com/dask/dask / to_backend

Method to_backend

dask/dataframe/dask_expr/_collection.py:2564–2584  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 4

test_to_backend_simplifyFunction · 0.45
test_groupby_apply_cudfFunction · 0.45
test_to_backendFunction · 0.45

Calls 1

dispatchMethod · 0.45

Tested by 4

test_to_backend_simplifyFunction · 0.36
test_groupby_apply_cudfFunction · 0.36
test_to_backendFunction · 0.36