I am getting the following error while trying to fetch the particular days of the week. The code which I have used is mentioned below:
df['weekday'] = df['Date'].dt.dayofweek
The date is in the following format.
But, I am not able to fetch the following days of the week and is getting an error as follows:
AttributeError: Can only use .dt accessor with datetimelike values
Can someone please help me out with this?