[Numpy-tickets] [NumPy] #326: recarray transpose()

NumPy numpy-tickets at scipy.net
Mon Oct 9 17:35:19 CDT 2006


#326: recarray transpose()
------------------------+---------------------------------------------------
 Reporter:  parejkoj    |        Owner:  somebody
     Type:  defect      |       Status:  closed  
 Priority:  normal      |    Milestone:          
Component:  numpy.core  |      Version:          
 Severity:  normal      |   Resolution:  invalid 
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by parejkoj):

 I guess I would have expected result to have shape (3,2), since it
 contains a bunch of records.  Perhaps my question is misplaced?

 Is there a reason that record arrays can't use the standard array
 functions, such as transpose?  Alternately, recarray.toarray() or
 something similar could also do the trick (though it would obviously lose
 the column headings, which would probably be ok).  The following works,
 though I'm not sure how it would do on a very large array:

 array(result.tolist())

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/326#comment:2>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list