if column != pd.NaT code example Example: pandas not a time nat In [21]: pandas.isnull(pandas.NaT) Out[21]: True