Python -Test ist Nan
math.isnan(n)
Famous Flatworm
math.isnan(n)
# Test to see if it is equal to itself
def isNaN(num):
return num != num
import math
print math.isnan(float('NaN'))OutputTrue
print math.isnan(1.0)OutputFalse
>>> pd.isnull(None)
True
import pandas as pd
pd.isnull(df.columnName).sum()
pd.notnull(df.columnName).sum()
math.isnan(x)