Treatment of NANs in the statistics module
Ben Finney
ben+python at benfinney.id.au
Sat Mar 17 02:08:02 EDT 2018
Ben Finney <ben+python at benfinney.id.au> writes:
> Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes:
>
> > (1) […] If there is a NAN in your data, the result of calling
> > median() is implementation-defined.
>
> This is the least Pythonic; there is no good reason IMO for specifying a
> behaviour in the implementation.
That's a confused statement. I mean to say: there's no good reason IMO
to leave the behaviour undefined in the function specification.
--
\ “I don't accept the currently fashionable assertion that any |
`\ view is automatically as worthy of respect as any equal and |
_o__) opposite view.” —Douglas Adams |
Ben Finney
More information about the Python-list
mailing list