pandas.Index.ndim

Index.ndim

return the number of dimensions of the underlying data, by definition 1