pandas.Index.ndim

property Index.ndim: int

Number of dimensions of the underlying data, by definition 1.