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

Method to_backend

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

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

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