Re: [Numpy-discussion] why is default axis always different?

2006-08-12 Thread Sven Schreiber
Sven Schreiber schrieb: > Hi, > notice the (confusing, imho) different defaults for the axis of the > following related functions: > > nansum(a, axis=-1) > Sum the array over the given axis, treating NaNs as 0. > > sum(x, axis=None, dtype=None) > Sum the array over the given axis. The op

[Numpy-discussion] why is default axis always different?

2006-08-11 Thread Sven Schreiber
Hi, notice the (confusing, imho) different defaults for the axis of the following related functions: nansum(a, axis=-1) Sum the array over the given axis, treating NaNs as 0. sum(x, axis=None, dtype=None) Sum the array over the given axis. The optional dtype argument is the data type