[Numpy-discussion] missing data discussion round 2
Tue Jun 28 15:37:26 CDT 2011
On Jun 28, 2011, at 9:41 PM, Eric Firing wrote:
> One of the real frustrations of the present masked array is that there
> is no savez/load support. I could roll my own by using a convention
> like saving the mask of xxx as xxx__mask__, and then reversing the
> process in a modified load; but I haven't gotten around to doing it.
> Regardless of internal implementation, I hope that core support for
> missing values will be included in savez/load.
Transform your masked array into a structured one (one field for the data, one for the mask), using the .torecords method, and use it as a regular ndarray.
More information about the NumPy-Discussion