SciPy

numpy.ma.masked_array.partition

masked_array.partition(*args, **kwargs)[source]