(x)
| 40 | |
| 41 | |
| 42 | def is_object_string_dataframe(x) -> bool: |
| 43 | return isinstance(x, pd.DataFrame) and ( |
| 44 | any(is_object_string_series(s) for _, s in x.items()) |
| 45 | or is_object_string_index(x.index) |
| 46 | ) |
| 47 | |
| 48 | |
| 49 | def _to_string_dtype(df, dtype_check, index_check, string_dtype): |