MCPcopy
hub / github.com/dask/dask / to_backend

Method to_backend

dask/dataframe/dask_expr/_collection.py:2530–2550  ·  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

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

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