DateTime
Date variables should no be used as categorical data
# To datetime
dataframe['Date Type Column'] = pd.to_datetime(dataframe.date_column_as_string)
dataframe['Month'] = dataframe.date_column_as_string.dt.month
Date variables should no be used as categorical data
# To datetime
dataframe['Date Type Column'] = pd.to_datetime(dataframe.date_column_as_string)
dataframe['Month'] = dataframe.date_column_as_string.dt.month