numpy.ma.MaskedArray.tostring

MaskedArray.tostring(fill_value=None, order='C')

Return a copy of array data as a Python string containing the raw bytes in the array. The array is filled beforehand.

Parameters:

fill_value : {var}, optional

Value used to fill in the masked values. If None, uses self.fill_value instead.

order : {string}

Order of the data item in the copy {‘C’,’F’,’A’}. ‘C’ – C order (row major) ‘Fortran’ – Fortran order (column major) ‘Any’ – Current order of array. None – Same as “Any”

Notes

As for method:ndarray.tostring, information about the shape, dtype..., but also fill_value will be lost.

Previous topic

numpy.ma.MaskedArray.torecords

Next topic

numpy.ma.dump

This Page

Quick search