On 10/03/10 10:09, Bruce Schultz wrote:
On Sat, Mar 6, 2010 at 8:35 AM, Gökhan Sever gokhanse...@gmail.com wrote:
On Fri, Mar 5, 2010 at 8:00 AM, Bruce Schultz bruce.schu...@gmail.com
wrote:
Output is:
### ndarray
[[ 1. 2. ]
[ 3. 4.1]]
### structured array
[(1.0, 2.0)
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
On Mon, Mar 8, 2010 at 5:50 PM, Tim Michelsen
timmichel...@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
Tim Michelsen wrote:
I still wonder why there is not a quick function for such a view /
reshape conversion.
Because it is difficult (impossible?) to do in the general case. .view()
really isn't that bad, in fact, it remarkably powerful and flexible!
-Chris
--
Christopher Barker, Ph.D.
I still wonder why there is not a quick function for such a view /
reshape conversion.
Because it is difficult (impossible?) to do in the general case. .view()
really isn't that bad, in fact, it remarkably powerful and flexible!
I would not drop .view() but rather add a convenience function
josef.p...@gmail.com schrieb:
On Mon, Mar 8, 2010 at 5:50 PM, Tim Michelsen
timmichel...@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
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
On Sat, Mar 6, 2010 at 8:35 AM, Gökhan Sever gokhanse...@gmail.com wrote:
On Fri, Mar 5, 2010 at 8:00 AM, Bruce Schultz bruce.schu...@gmail.com
wrote:
Output is:
### ndarray
[[ 1. 2. ]
[ 3. 4.1]]
### structured array
[(1.0, 2.0) (3.0, 4.0996)]
Thanks
Bruce
I
Hello,
I am also looking into the convertsion from strcutured arrays to ndarray.
I've just started playing with numpy and have noticed that when printing
a structured array that the output is not nicely formatted. Is there a
way to make the formatting look the same as it does for an
On Mon, Mar 8, 2010 at 1:55 PM, Tim Michelsen
timmichel...@gmx-topmail.de wrote:
Hello,
I am also looking into the convertsion from strcutured arrays to ndarray.
I've just started playing with numpy and have noticed that when printing
a structured array that the output is not nicely
On Mon, Mar 8, 2010 at 2:01 PM, josef.p...@gmail.com wrote:
On Mon, Mar 8, 2010 at 1:55 PM, Tim Michelsen
timmichel...@gmx-topmail.de wrote:
Hello,
I am also looking into the convertsion from strcutured arrays to ndarray.
I've just started playing with numpy and have noticed that when
On Mon, Mar 8, 2010 at 2:04 PM, Skipper Seabold jsseab...@gmail.com wrote:
On Mon, Mar 8, 2010 at 2:01 PM, josef.p...@gmail.com wrote:
On Mon, Mar 8, 2010 at 1:55 PM, Tim Michelsen
timmichel...@gmx-topmail.de wrote:
Hello,
I am also looking into the convertsion from strcutured arrays to
On Mon, Mar 8, 2010 at 2:17 PM, josef.p...@gmail.com wrote:
On Mon, Mar 8, 2010 at 2:04 PM, Skipper Seabold jsseab...@gmail.com wrote:
On Mon, Mar 8, 2010 at 2:01 PM, josef.p...@gmail.com wrote:
On Mon, Mar 8, 2010 at 1:55 PM, Tim Michelsen
timmichel...@gmx-topmail.de wrote:
Hello,
I am
On Mon, Mar 8, 2010 at 2:24 PM, Skipper Seabold jsseab...@gmail.com wrote:
On Mon, Mar 8, 2010 at 2:17 PM, josef.p...@gmail.com wrote:
On Mon, Mar 8, 2010 at 2:04 PM, Skipper Seabold jsseab...@gmail.com wrote:
On Mon, Mar 8, 2010 at 2:01 PM, josef.p...@gmail.com wrote:
On Mon, Mar 8, 2010 at
On Mar 8, 2010, at 1:55 PM, Tim Michelsen wrote:
Hello,
I am also looking into the convertsion from strcutured arrays to ndarray.
I've just started playing with numpy and have noticed that when printing
a structured array that the output is not nicely formatted. Is there a
way to make the
Hi,
I've just started playing with numpy and have noticed that when printing
a structured array that the output is not nicely formatted. Is there a
way to make the formatting look the same as it does for an unstructured
array?
Here an example of what I mean:
data = [ (1, 2), (3, 4.1) ]
dtype =
On Fri, Mar 5, 2010 at 8:00 AM, Bruce Schultz bruce.schu...@gmail.comwrote:
Hi,
I've just started playing with numpy and have noticed that when printing a
structured array that the output is not nicely formatted. Is there a way to
make the formatting look the same as it does for an
17 matches
Mail list logo