Quick poll: gmean or geometric_mean

Ian Kelly ian.g.kelly at gmail.com
Sun Jul 10 03:28:46 EDT 2016


On Sat, Jul 9, 2016 at 3:45 PM, Chris Angelico <rosuav at gmail.com> wrote:
> On Sat, Jul 9, 2016 at 3:26 PM, Steven D'Aprano <steve at pearwood.info> wrote:
>> I'd like to get a quick show of hands regarding the names. Which do you
>> prefer?
>>
>> hmean and gmean
>>
>> harmonic_mean and geometric_mean
>
> I'd prefer the shorter names.

I'd prefer the longer. Anybody who wants gmean can easily type:

    from statistics import geometric_mean as gmean



More information about the Python-list mailing list