[Numpy-discussion] printing structured arrays

Tim Michelsen timmichelsen@gmx-topmail...
Tue Mar 9 16:49:05 CST 2010


josef.pktd@gmail.com schrieb:
> On Mon, Mar 8, 2010 at 5:50 PM, Tim Michelsen
> <timmichelsen@gmx-topmail.de> wrote:
>> Hello,
>> thanks to all who responded and have their input here.
>>
>> I added a little code snippet to show the view and reshape:
>>
>> http://www.scipy.org/Cookbook/Recarray
>>
>> What do you think?
>> Is this worth to go into the official docs?
>> The page http://docs.scipy.org/doc/numpy/user/basics.rec.html is quite
>> sparse...
>>
>> I still wonder why there is not a quick function for such a view /
>> reshape conversion.
> 
> 
> Thanks, the docs for working with arrays with structured dtypes are sparse
> 
> Note that in your example .view(np.ndarray) doesn't do anything
Please note that I wanted to demonstrate many different ways of view &
reshape.

I updated the page:
http://www.scipy.org/Cookbook/Recarray



More information about the NumPy-Discussion mailing list