I have two similar date columns named EventDate and Type of Day in the following format: 1/27/2023.
How do I change the second column into a day of the week. (E.g. Monday, Tuesday)
Thanks in advance.
I have tried several routes without avail. Like:
import datetime
datetime.datetime.strptime('Type of Day','%M/%d/%Y').strftime('%A'))
I suppose you have a dataframe:
For a single date: