I'm trying to convert dates in a pandas dataframe in the format 01/01/2017 to a python format in order to extract the day of the week. I've been using:
df['Date'] = pd.to_datetime(df['Date'])
df['DOW'] = df['Date'].dt.weekday_name
but the first line takes about 250 µs and I have >1 million dates to convert.
Is there a faster way to do this?