pyspark.pandas.Index.is_object

Index.is_object() → bool[source]

Return if the current index type is an object type.

Examples

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