On Fri, 28 Sep 2018 23:52:22 -0700
Nathaniel Smith <n...@pobox.com> wrote:
> On Fri, Sep 28, 2018 at 11:31 PM, Steve Barnes <gadgetst...@live.co.uk> wrote:
> > One specific use case that springs to mind would be for Libraries such
> > as Pandas to return iNaN for entries that are not numbers in a column
> > that it has been told to treat as integers.  
> 
> Pandas doesn't use Python objects to store integers, though; it uses
> an array of unboxed machine integers.
> 
> In places where you can use Python objects to represent numbers, can't
> you just use float("nan") instead of iNaN?

Or simply None ;-)

Regards

Antoine.


_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to