pyspark.pandas.Index.is_categorical#

Index.is_categorical()[source]#

Return if the current index type is a categorical type.

Examples

>>> ps.DataFrame({'a': [1]}, index=[1]).index.is_categorical()
False