The Python Oracle

Why do "Not a Number" values equal True when cast as boolean in Python/Numpy?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Track title: CC M Beethoven - Piano Sonata No 3 in C 3

--

Chapters
00:00 Why Do &Quot;Not A Number&Quot; Values Equal True When Cast As Boolean In Python/Numpy?
00:31 Accepted Answer Score 43
00:58 Answer 2 Score 8
01:28 Answer 3 Score 4
02:03 Answer 4 Score 2
02:26 Answer 5 Score 0
02:48 Thank you

--

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

--

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

--

Tags
#python #math #numpy

#avk47