def isnat(x):
    """ 
    datetime64 analog to isnan.
    doesn't yet exist in numpy - other ways give warnings
    and are likely to change.  
    """
return x.astype('i8') == np.datetime64('NaT').astype('i8')
Numpy: проверка, является ли значение NaT