numpy.ma
method
MaskedArray.
tostring
This function is a compatibility alias for tobytes. Despite its name it returns bytes not strings.
numpy.ma.MaskedArray.torecords
numpy.ma.MaskedArray.tobytes