pyspark.pandas.MultiIndex.levshape

property MultiIndex.levshape

A tuple with the length of each level.

Examples

>>> midx = ps.MultiIndex.from_tuples([('a', 'x'), ('b', 'y'), ('c', 'z')])
>>> midx  
MultiIndex([('a', 'x'),
            ('b', 'y'),
            ('c', 'z')],
           )
>>> midx.levshape
(3, 3)