pandas.Index.nlevels

property Index.nlevels: int

Number of levels.