pandas.Index.ndim

property Index.ndim

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