pyspark.pandas.Index.is_integer

Index.is_integer() → bool[source]

Return if the current index type is a integer type.

Examples

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