Reputation: 351
So, I have the following DataFrame:
I would like to convert those datetime values to date, so I tried:
df['Notification Date']= datetime.date(df['Notification Date'])
What am I doing wrong?
Upvotes: 0
Views: 116
Reputation: 150745
You should use pd.to_datetime
for pandas series:
df['Notification Date'] = pd.to_datetime(df['Notification Date'])
Upvotes: 2