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

Function is_object_string_index

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

Source from the content-addressed store, hash-verified

28
29
30def is_object_string_index(x) -> bool:
31 if isinstance(x, pd.MultiIndex):
32 return any(is_object_string_index(level) for level in x.levels)
33 return isinstance(x, pd.Index) and is_object_string_dtype(x.dtype)
34
35
36def is_object_string_series(x) -> bool:

Callers 3

is_object_string_seriesFunction · 0.85

Calls 2

anyFunction · 0.85
is_object_string_dtypeFunction · 0.85

Tested by 1