NumPy

numpy.ma.MaskType.resize

method

MaskType.resize()

Scalar method identical to the corresponding array attribute.

Please see ndarray.resize.