0

I'm having problems replacing NaT in my data frame and I don't know why. I've tried 'fillna' and 'replace'. For some reason both did not work. My last try is:

df['started'][222] = df['started'][222].replace('NaT', '')
df['started'][222]

The output is:

NaT

Looking at the type of data I'm dealing with, I see: pandas._libs.tslibs.nattype.NaTType

What am I missing?

I appreciate your help.

1 Answers1

0

to replace value in df i always use this:

df['column name'] = df['column name'].replace(['old value'],'new value')