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.


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”


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

Previous topic

Next topic

This Page

Quick search