[Numpy-discussion] ndarray from column data
Dan Yamins
dyamins at gmail.com
Thu Jul 2 14:15:13 EDT 2009
>
> What's wrong with recarrays? In any case, if you need a true ndarray
> object
> you can always do:
>
> ndarr = recarr.view(np.ndarray)
>
> and you are done.
>
I have a question about this though. The object "ndarr" will consist of
"records", e.g.:
In [96]: type(ndarr[0])
Out[96]: <class 'numpy.core.records.record'>
If ndarr had been defined directly via ndarray constructors, then you'd get:
In [99]: type(ndarr[0])
Out[99]: <type 'numpy.void'>
I guess this might not be such a big deal. But what is the difference
between the "record" class nad the "void" class? Does this matter for
anything at all?
Thanks
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090702/93eb2595/attachment.html>
More information about the NumPy-Discussion
mailing list