|
|
Log in / Subscribe / Register

Some median Python NaNsense

Some median Python NaNsense

Posted Jan 19, 2020 11:07 UTC (Sun) by jondo (guest, #69852)
Parent article: Some median Python NaNsense

In this context it's interesting to see that Pandas also tries to move away from using numpy.nan (i.e. IEEE silent NaN) as "missing" indicator. Target is to deal with "missing" uniformly across all data types, instead of numpy.nan for floats, pandas.NaT for "not-a-time", and None for everything else (integers, strings, ...). Internally, the "missing" info is kept as a separate, binary mask.

See the documentation of the upcoming 1.0.0 release: https://pandas.pydata.org/pandas-docs/version/1.0.0/user_...

I am looking forward to it, because in my work I currently have to represent integer data as float to efficiently deal with missings.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds