0

I am learning Python for Data Science. I have dataset with date column having more NaT values.

How to get it replaced or removed ?

Please help

Sociopath
  • 13,068
  • 19
  • 47
  • 75
MNM
  • 1
  • use the `na_values` function while [reading](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_excel.html) the file – anky Sep 11 '18 at 12:04

1 Answers1

0

You can use the following check to replace or remove nat values.

 import numpy as np
 np.isnat(np.datetime64("NaT"))
Gimhani
  • 1,318
  • 13
  • 23