pyspark.pandas.Index.is_boolean

Index.is_boolean() → bool

Return if the current index type is a boolean type.

Examples

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