The Python Oracle

What is the difference between NaN and None?

This video explains
What is the difference between NaN and None?

--

Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn

--

Track title: CC E Schuberts Piano Sonata D 784 in A

--

Chapters
00:00 Question
01:21 Accepted answer (Score 150)
03:39 Answer 2 (Score 29)
04:49 Answer 3 (Score 3)
05:22 Answer 4 (Score 0)
05:44 Thank you

--

Full question
https://stackoverflow.com/questions/1753...

Accepted answer links:
[missing data ]: http://pandas.pydata.org/pandas-docs/dev...
['working with missing data']: https://pandas-docs.github.io/pandas-doc...
['choice of NA-representation']: http://pandas.pydata.org/pandas-docs/dev...
[isnull]: http://pandas.pydata.org/pandas-docs/dev...
[notnull]: http://pandas.pydata.org/pandas-docs/dev...
["gotcha" that integer Series containing missing data are upcast to floats]: http://pandas.pydata.org/pandas-docs/dev...
[NA type promotions]: http://pandas.pydata.org/pandas-docs/dev...
[surprising results]: https://stackoverflow.com/a/19866269/124...
[pd.isnull]: http://pandas.pydata.org/pandas-docs/dev...
[pd.notnull]: http://pandas.pydata.org/pandas-docs/dev...

Answer 2 links:
[IEEE 754 floating-point standard]: http://en.wikipedia.org/wiki/IEEE_floati...

Answer 3 links:
[isnan()]: http://docs.python.org/2/library/math.ht...

Answer 4 links:
[https://medium.com/analytics-vidhya/deal...]: https://medium.com/analytics-vidhya/deal...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #numpy #pandas #nan