[Numpy-discussion] Median again
Joris De Ridder
Joris.DeRidder at ster.kuleuven.be
Tue Jan 29 19:32:50 EST 2008
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 significant wart in the numpy API, and has
>> caught quite a few people...
>>
> I'm fine with a median API change for 1.1.
>
> We can add the axis keyword for 1.0.5 as long as the default stays the
> same. We can also add the other keywords as well if appropriate
> defaults can be determined.
Do you mean creating a median(a, axis=0) for 1.0.5, and changing it to
median(a,axis=None) for 1.1? (Modulo other keywords).
Joris
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
More information about the NumPy-Discussion
mailing list