astropy.utils
astropy.utils.masked
Like numpy.nansum, skipping masked values as well.
numpy.nansum
Masked/NaN values are replaced with 0. The output is not masked.