How to Solve NameError: name 'MaskedArray' is not defined -- numpy

Solution: Import the 'MaskedArray' module

To Solve the error, add the following line to the top of your code.

from numpy.ma import MaskedArray

 

For more information:
Python numpy MaskedArray