Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
- AuthorPosts
Obrigado Fabio, eu fiz o código por partes. Acabei postando apenas a coluna 8. Seu código está correto.
from sklearn.preprocessing import LabelEncoder, OneHotEncoder from sklearn.compose import ColumnTransformer ... onehotencorder = ColumnTransformer( [('one_hot_encoder', OneHotEncoder(), [8])], remainder='passthrough' ) previsores = onehotencorder.fit_transform(previsores)- This reply was modified 5 years, 4 months ago by
Leandro.
- This reply was modified 5 years, 4 months ago by
- AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
