(x)
| 28 | |
| 29 | |
| 30 | def 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 | |
| 36 | def is_object_string_series(x) -> bool: |