Message336007
>> [...] 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! |
|
Date |
User |
Action |
Args |
2019-02-19 19:35:28 | francismb | set | recipients:
+ francismb, rhettinger, steven.daprano, Windson Yang |
2019-02-19 19:35:28 | francismb | set | messageid: <1550604928.05.0.658249570744.issue35892@roundup.psfhosted.org> |
2019-02-19 19:35:28 | francismb | link | issue35892 messages |
2019-02-19 19:35:27 | francismb | create | |
|