Numpy: Comprobando si un valor es NaT

nat = np.datetime64('NaT')
nat == nat
>> FutureWarning: In the future, 'NAT == x' and 'x == NAT' will always be False.

np.isnan(nat)
>> TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

¿Cómo puedo verificar si un datetime64 es NaT? Parece que no puedo sacar nada de los documentos. Sé que Pandas puede hacerlo, pero prefiero no agregar una dependencia para algo tan básico.

Respuestas a la pregunta(6)

Su respuesta a la pregunta