Skip to content

Instantly share code, notes, and snippets.

@tanveer-sayyed
Last active February 23, 2019 12:31
Show Gist options
  • Save tanveer-sayyed/7497dfe5247b8f4f32fac822f6b5b0dd to your computer and use it in GitHub Desktop.
Save tanveer-sayyed/7497dfe5247b8f4f32fac822f6b5b0dd to your computer and use it in GitHub Desktop.
NaN-1.py
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