I just want to check if a single cell in Pandas series is null or not i.e. to check if a value is NaN.
NaN
All other answers are for series and arrays, but
Try this:
import pandas as pd import numpy as np from pandas import * >>> L = [4, nan ,6] >>> df = Series(L) >>> df 0 4 1 NaN 2 6 >>> if(pd.isnull(df[1])): print "Found" Found >>> if(np.isnan(df[1])): print "Found" Found