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

Function is_pyarrow_string_index

dask/dataframe/_pyarrow.py:24–27  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

22
23
24def is_pyarrow_string_index(x) -> bool:
25 if isinstance(x, pd.MultiIndex):
26 return any(is_pyarrow_string_index(level) for level in x.levels)
27 return isinstance(x, pd.Index) and is_pyarrow_string_dtype(x.dtype)
28
29
30def is_object_string_index(x) -> bool:

Callers

nothing calls this directly

Calls 2

anyFunction · 0.85
is_pyarrow_string_dtypeFunction · 0.85

Tested by

no test coverage detected