MultiIndex.
levshape
A tuple with the length of each level.
pandas.MultiIndex.nlevels
pandas.MultiIndex.from_arrays