Probably very simple, however I cannot find the right format for parsing dates in a dataframe.
Date to parse: Thu, Apr 1, 2021 (df name: df data, column name: Date )
My attempt:
date_p = pd.to_datetime(nba_data.Date, format = '%a%b%-m%Y')
I am aware that the '-' is according to the Error a bad directive in the format. However solely %m would according to my knowledge refer to 01 and not 1. Am I correct with that assumption.
Would be very thankful for any help.