MCPcopy
hub / github.com/dask/dask / _maybe_convert_string

Function _maybe_convert_string

dask/dataframe/utils.py:514–524  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

512
513
514def _maybe_convert_string(a, b):
515 if pyarrow_strings_enabled():
516 from dask.dataframe._pyarrow import to_pyarrow_string
517
518 if isinstance(a, (pd.DataFrame, pd.Series, pd.Index)):
519 a = to_pyarrow_string(a)
520
521 if isinstance(b, (pd.DataFrame, pd.Series, pd.Index)):
522 b = to_pyarrow_string(b)
523
524 return a, b
525
526
527def assert_eq_dtypes(a, b):

Callers 2

assert_eq_dtypesFunction · 0.85
assert_eqFunction · 0.85

Calls 1

pyarrow_strings_enabledFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…