Some median Python NaNsense
Some median Python NaNsense
Posted Jan 7, 2020 13:42 UTC (Tue) by cpitrat (subscriber, #116459)In reply to: Some median Python NaNsense by gdt
Parent article: Some median Python NaNsense
Posted Jan 8, 2020 0:02 UTC (Wed)
by KaiRo (subscriber, #1987)
[Link] (1 responses)
Posted Jan 8, 2020 16:02 UTC (Wed)
by mathstuf (subscriber, #69389)
[Link]
Posted Jan 10, 2020 2:29 UTC (Fri)
by gdt (subscriber, #6284)
[Link] (1 responses)
None isn't that useful for processing large datasets where memory efficiency matters, as typically generated by scientific instruments. Thus SciPy's overloading of NaN. Putting that another way: Note that I am not arguing for overloading NaN -- I don't have a dog in this fight -- I'm just using my background as a statistics professional to explain why choices your tone suggests are unreasonable have been made by people acting reasonably.
Posted Jan 10, 2020 11:19 UTC (Fri)
by cpitrat (subscriber, #116459)
[Link]
Some median Python NaNsense
Some median Python NaNsense
Some median Python NaNsense
import array
a = array.array('d', [1.0, 2.0, 3.0, None])
TypeError: must be real number, not NoneType
Some median Python NaNsense
