MCPcopy Index your code
hub / github.com/dask/dask / get_default_shuffle_method

Function get_default_shuffle_method

dask/utils.py:2222–2237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2220
2221
2222def get_default_shuffle_method() -> str:
2223 if d := config.get("dataframe.shuffle.method", None):
2224 return d
2225 try:
2226 from distributed import default_client
2227
2228 default_client()
2229 except (ImportError, ValueError):
2230 return "disk"
2231
2232 try:
2233 from dask.dataframe._compat import HAS_PYARROW
2234
2235 return "p2p" if HAS_PYARROW else "tasks"
2236 except ImportError:
2237 return "tasks"
2238
2239
2240def get_meta_library(like):

Callers 6

groupbyMethod · 0.90
shuffleMethod · 0.90
_lowerMethod · 0.90
is_broadcast_joinMethod · 0.90
_lowerMethod · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…