I'm simply trying to use a masked array to filter out some nanentries.
import numpy as np
# x = [nan, -0.35, nan]
x = np.ma.masked_equal(x, np.nan)
print x
This outputs the following:
masked_array(data = [        nan -0.33557216         nan],
         mask = False,
   fill_value = nan)
Calling np.isnan() on x returns the correct boolean array, but the mask just doesn't seem to work. Why would my mask not be working as I expect?