Last active
February 23, 2019 12:31
-
-
Save tanveer-sayyed/7497dfe5247b8f4f32fac822f6b5b0dd to your computer and use it in GitHub Desktop.
NaN-1.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [12]: | |
# Both are not equal | |
print(np.NaN == None) | |
# In a condition we cannot get hold of a NaN value | |
print(np.nan == np.nan) | |
# But we can hold None just like strings ["missing”, “not available”, “NA”] | |
print(None == None) | |
Out [12]: | |
False | |
False | |
True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment