Alan G Isaac wrote:
> Again:
> http://www.scipy.org/Numpy_Example_List_With_Doc
>
> Really, as a new NumPy user you should just keep
> this page open in your browser.
Point well made, it's a shame that summary doesn't form part of the book...
> Also, help(N.sum), of course.
Ah cool. I think I g
On Tue, 18 Mar 2008, Chris Withers apparently wrote:
> Where are the docs for sum?
Again:
http://www.scipy.org/Numpy_Example_List_With_Doc
Really, as a new NumPy user you should just keep
this page open in your browser.
Also, help(N.sum), of course.
Cheers,
Alan Isaac
__
Manuel Metz wrote:
> Hm, in this case you can do it like this:
>
> numpy.sum(numpy.array([numpy.sum(v) for k,v in data.items()]))
maybe:
numpy.num(data.values(),axis=0)
...would also work?
I can't actually use that though as the reason I need to do this is part
of building stacked bar charts
Chris Withers wrote:
> Alan G Isaac wrote:
>> On Tue, 18 Mar 2008, Chris Withers apparently wrote:
>>> Say I have an aribtary number of arrays:
>>> arrays = [array([1,2,3]),array([4,5,6]),array([7,8,9])]
>>> How can I sum these all together?
>> Try N.sum(arrays,axis=0).
>
> I assume N here is:
>
Alan G Isaac wrote:
> On Tue, 18 Mar 2008, Chris Withers apparently wrote:
>> Say I have an aribtary number of arrays:
>> arrays = [array([1,2,3]),array([4,5,6]),array([7,8,9])]
>> How can I sum these all together?
>
> Try N.sum(arrays,axis=0).
I assume N here is:
import numpy as N?
Yep, it i