- This topic has 1 reply, 2 voices, and was last updated 2 years, 9 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Fórum Machine Learning e Data Science com Python de A à Z › Erros ao executar a linha abaixo
x_census = onehotencoder_census.fit_transform(x_census).toarray()
/usr/local/lib/python3.8/dist-packages/sklearn/compose/_column_transformer.py in _validate_transformers(self)
322 return
323
–> 324 names, transformers, _ = zip(*self.transformers)
325
326 # validate names
TypeError: ‘OneHotEncoder’ object is not iterable
Olá Leo, verifique se alguma linha ficou sem execução. Esse é o mesmo código/base de dados da vídeo aula?
Fabio