[Python-ideas] NAN handling in statistics functions