DateTime

Date variables should no be used as categorical data

DateTime Components

# To datetime
dataframe['Date Type Column'] = pd.to_datetime(dataframe.date_column_as_string)
dataframe['Month'] = dataframe.date_column_as_string.dt.month