numpy.ma.polyfit
numpy.ma.clip
numpy.ma.
around
Round an array to the given number of decimals.
See also