Re: [Numpy-discussion] Median again

2008-01-30 Thread Travis E. Oliphant
Timothy Hochberg wrote: On Jan 29, 2008 5:48 PM, Travis E. Oliphant [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Joris De Ridder wrote: On 30 Jan 2008, at 00:32, Travis E. Oliphant wrote: Matthew Brett wrote: Hi, median moved

Re: [Numpy-discussion] Median again

2008-01-30 Thread Jarrod Millman
On Jan 30, 2008 10:41 AM, Travis E. Oliphant [EMAIL PROTECTED] wrote: Yes, we could start to do that (spit out a warning in 1.0.5). This should definitely be done in 1.0.6 Perhaps we use axis=None to start with and then check for that and spit out the warning (and change axis to 0). Thanks

Re: [Numpy-discussion] Median again

2008-01-29 Thread Joris De Ridder
This feature request has been repeatedly asked before (e.g. 6 months ago). The relevant ticket (#558, although this only asks for axis support) mentions a milestone 1.1. I would like to ask if it could be moved somewhat higher on the priority list. I provided some code for axis support

Re: [Numpy-discussion] Median again

2008-01-29 Thread Matthew Brett
Hi, median moved mediandim0 implementation of medianwithaxis or similar, with same call signature as mean. Deprecation warning for use of median, and return of mediandim0 for now. Eventual move of median to return medianwithaxis. This would confuse people even more, I'm afraid.

Re: [Numpy-discussion] Median again

2008-01-29 Thread Alexander Michael
On Jan 29, 2008, at 11:51 AM, Joris De Ridder wrote: This feature request has been repeatedly asked before (e.g. 6 months ago). The relevant ticket (#558, although this only asks for axis support) mentions a milestone 1.1. I would like to ask if it could be moved somewhat higher on the

Re: [Numpy-discussion] Median again

2008-01-29 Thread Andrew Straw
Considering that many of the statistical functions (mean, std, median) must iterate over all the data and that people (or at least myself) typically call them sequentially on the same data, it may make sense to make a super-function with less repetition. Instead of: x_mean = np.mean(x) x_median =

Re: [Numpy-discussion] Median again

2008-01-29 Thread Eric Firing
Andrew Straw wrote: Considering that many of the statistical functions (mean, std, median) must iterate over all the data and that people (or at least myself) typically call them sequentially on the same data, it may make sense to make a super-function with less repetition.

Re: [Numpy-discussion] Median again

2008-01-29 Thread Matthew Brett
Hi, median moved mediandim0 implementation of medianwithaxis or similar, with same call signature as mean. But - for the median function change - do we agree that this should be changed? I think it is a significant wart in the numpy API, and has caught quite a few people... Matthew

Re: [Numpy-discussion] Median again

2008-01-29 Thread Travis E. Oliphant
Matthew Brett wrote: Hi, median moved mediandim0 implementation of medianwithaxis or similar, with same call signature as mean. But - for the median function change - do we agree that this should be changed? I think it is a significant wart in the numpy API, and has caught

Re: [Numpy-discussion] Median again

2008-01-29 Thread Joris De Ridder
On 30 Jan 2008, at 00:32, Travis E. Oliphant wrote: Matthew Brett wrote: Hi, median moved mediandim0 implementation of medianwithaxis or similar, with same call signature as mean. But - for the median function change - do we agree that this should be changed? I think it is a

Re: [Numpy-discussion] Median again

2008-01-29 Thread Travis E. Oliphant
Joris De Ridder wrote: On 30 Jan 2008, at 00:32, Travis E. Oliphant wrote: Matthew Brett wrote: Hi, median moved mediandim0 implementation of medianwithaxis or similar, with same call signature as mean. But - for the median function change - do we agree