how to check a value is nan or nat in python code example Example: pandas not a time nat In [21]: pandas.isnull(pandas.NaT) Out[21]: True