[NumPy-Tickets] [NumPy] #1973: Can not display a masked array containing np.NA values even if masked
NumPy Trac
numpy-tickets@scipy....
Fri Nov 4 12:10:22 CDT 2011
#1973: Can not display a masked array containing np.NA values even if masked
------------------------+---------------------------------------------------
Reporter: bsouthey | Owner: pierregm
Type: defect | Status: new
Priority: high | Milestone: Unscheduled
Component: numpy.ma | Version: devel
Keywords: masked, NA |
------------------------+---------------------------------------------------
Comment(by bsouthey):
Sorry I was too quick on the submit button as I tracked this down to the
'astype' function that does not support the new np.NA value. I have no
problems if this ticket is closed and another opened for astype.
{{{
>>> np.array([1,2,3,4]).astype(float)
array([ 1., 2., 3., 4.])
>>> np.array([1,2,3,np.NA]).astype(float)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Cannot assign NA to an array which does not support NAs
>>> np.array([1,2,3,np.NA]).astype(np.int64)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Cannot assign NA to an array which does not support NAs
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1973#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list