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

Function _maybe_convert_string

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

Source from the content-addressed store, hash-verified

511
512
513def _maybe_convert_string(a, b):
514 if pyarrow_strings_enabled():
515 from dask.dataframe._pyarrow import to_pyarrow_string
516
517 if isinstance(a, (pd.DataFrame, pd.Series, pd.Index)):
518 a = to_pyarrow_string(a)
519
520 if isinstance(b, (pd.DataFrame, pd.Series, pd.Index)):
521 b = to_pyarrow_string(b)
522
523 return a, b
524
525
526def 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