I want to know whether there is any difference between using np.nan and None while using pandas dataframe or numpy arrays. If there is, where exactly does this difference matter?
Asked
Active
Viewed 177 times
1 Answers
-1
Np.nan means not a number and None
can be applied in general to the other cases.
np.nan can be used as a bool for example:
if('Hello' == np.nan)

Alec
- 8,529
- 8
- 37
- 63

Freison Castro
- 92
- 1
- 2