ach (x,y) ?
>
> Nadav
>
>
> From: numpy-discussion-boun...@scipy.org [numpy-discussion-boun...@scipy.org]
> On Behalf Of Ruby Stevenson [ruby...@gmail.com]
> Sent: 30 January 2012 21:27
> To: Discussion of Numerical Python
>
On Mon, Jan 30, 2012 at 2:21 PM, Ruby Stevenson wrote:
> hi, all
>
> I am trying to figure out how to do histogram with numpy
>
> I have a three-dimension array A[x,y,z], another array (bins) has
> been allocated along Z dimension, z'
>
> how can I get the histogra
I think this is exactly what I need. Thanks for your help, Olivier.
Ruby
On Fri, Jan 20, 2012 at 9:50 AM, Olivier Delalleau wrote:
> What do you mean by "summarize"?
> If for instance you want to sum along Y, just do
> my_array.sum(axis=1)
>
> -=- Olivier
>
hi, all
Say I have a three dimension array, X, Y, Z, how can I condense into
two dimensions: for example, compute 2-D array with (X, Z) and
summarize along Y dimensions ... is it possible?
thanks
Ruby
___
NumPy-Discussion mailing list
NumPy-Discussion
Exactly what I need - thank you very much.
Ruby
On Thu, Jan 19, 2012 at 11:33 PM, Benjamin Root wrote:
>
>
> On Thursday, January 19, 2012, Ruby Stevenson wrote:
>> hi, all
>>
>> I am a newbie on numpy ... I am trying to figure out, given an array,
>> how to
hi, all
I am a newbie on numpy ... I am trying to figure out, given an array,
how to get back position value based on some conditions.
Say, array([1, 0, 0, 0 1], and I want to get a list of indices where
it is none-zero, [ 0 , 4 ]
The closest thing I can find from the doc is select(), but I can't