Reputation: 9
Within a df, the entries of a column "Date" (n entries) are of type datetime.datetime and I want to convert every entry to type datetime.date. Can anyone help here? THX!
Upvotes: 0
Views: 19
Reputation: 11650
use to_datetime to convert the dates to datetiem
df[Date] = pd.to_datetime(df[Date]).dt.date
Upvotes: 1