pyspark.pandas.Index.is_object

Index.is_object() → bool

Return if the current index type is a object type.

Examples

>>> ps.DataFrame({'a': [1]}, index=["a"]).index.is_object()
True