This is documentation for an old release of NumPy (version 1.3.). Read this page in the documentation of the latest stable release (version > 1.17).

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