Author francismb
Recipients Windson Yang, francismb, rhettinger, steven.daprano
Date 2019-02-19.19:35:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550604928.05.0.658249570744.issue35892@roundup.psfhosted.org>
In-reply-to
Content
>> [...] This keeps the signature simple (Iterable -> Scalar). [...]
>>
>> Categorical, binned, or ordinal data:
>>
>>   mode(data: Iterable, *, first_tie=False) -> object
>>   multimode(data: Iterable) -> List[object]

This seems reasonable to me due legacy (although I really thing that
multimode is just the real thing :-) )

>> Continuous data:
>>   mode(data: Iterable[Real]) -> Real

What should return in that case: E.g.: mode([42.0, 42.0, 42.0, 1.0, 1.0, 1.0]) ?

42.0 ? or 1.0 ? or [42.0, 1.0] ? or do I have misunderstood something ? 


Thanks!
History
Date User Action Args
2019-02-19 19:35:28francismbsetrecipients: + francismb, rhettinger, steven.daprano, Windson Yang
2019-02-19 19:35:28francismbsetmessageid: <1550604928.05.0.658249570744.issue35892@roundup.psfhosted.org>
2019-02-19 19:35:28francismblinkissue35892 messages
2019-02-19 19:35:27francismbcreate