I have a data set where any date before 2001 is invalid. I want to replace every instance where the date is before 2001 with NaT.
I tried doing something like this, but it would only be for one column and it just isn't correct...
if df['Delivery Date'].dt.year == 2001:
df['Delivery Date'] = np.nan