bigframes.pandas.Index.nlevels#

property Index.nlevels: int#

Integer number of levels in this MultiIndex

Examples:

>>> mi = bpd.MultiIndex.from_arrays([['a'], ['b'], ['c']])
>>> mi
MultiIndex([('a', 'b', 'c')],
           )
>>> mi.nlevels
3
Returns:

Number of levels.

Return type:

int