I have been searching the web for NaN in Python Numpy arrays and found some things I cannot reproduce. I am using the Anaconda distribution with numpy.version.version == 1.10.4
from numpy import NA as NA
only gets me a "cannot import NA". This NA module is mentioned in another stackoverflow thread
This same link also mentions maskna
and skipna
as NumPy parameters.
Alternatively, most array constructors (as of 1.7) have the parameter
maskna
, which you can set to True
This claim is also supported by the documentation from scypy.org
But again when I try this I only ever get an error:
a = np.arange(6, maskna=True)
gives me an encouraging "TypeError: 'maskna' is an invalid keyword argument for this function"
What is going on? Am I hunting a discontinued feature? Is this replaced by nansum(), nanmean() etc. But the documentation is 1.10.1 that's not far of 1.10.4.
How can I get this to work?