numpy.ma.
compress_cols
Suppress whole columns of a 2-D array that contain masked values.
This is equivalent to np.ma.compress_rowcols(a, 1), see extras.compress_rowcols for details.
np.ma.compress_rowcols(a, 1)
extras.compress_rowcols
See also
numpy.ma.soften_mask
numpy.ma.compress_rowcols