numpy.ma.MaskedArray.tolist

MaskedArray.tolist(fill_value=None)

Copy the data portion of the array to a hierarchical python list and returns that list.

Data items are converted to the nearest compatible Python type. Masked values are converted to fill_value. If fill_value is None, the corresponding entries in the output list will be None.

Previous topic

numpy.ma.MaskedArray.tofile

Next topic

numpy.ma.MaskedArray.torecords

This Page

Quick search