numpy.ma.MaskType.ndim

MaskType.ndim
number of array dimensions

This Page