Articles → Numpy → Isnat Function In NumpyIsnat Function In NumpyIn this article, we will discuss the "isnat" function in NumPy.Purpose This function returns true if the input parameter is valid time else false.Example import numpy as np print(np.isnat(np.datetime64("NaT"))) print(np.isnat(np.datetime64("2016-01-01")))Output Click to EnlargePosted By - Karan Gupta Posted On - Saturday, June 1, 2019 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
import numpy as np print(np.isnat(np.datetime64("NaT"))) print(np.isnat(np.datetime64("2016-01-01")))
Query/Feedback