I'm trying to normalize the continuous variables from my dataframe but I'm getting the following error
ValueError: could not convert string to float: 'M'
I know that the error occurs because I have some categorical variables so how can I ignore the categorical variables. This is my code
X=data
mms=MinMaxScaler()
mms.fit(X)
Xnorm=mms.transform(X)
print(Xnorm.min(axis=0))
print(Xnorm.max(axis=0))
print(Xnorm.shape)
X = data[['col1', 'col2']].X.