Home Forums Fórum Machine Learning e Data Science com Python de A à Z Erros ao executar a linha abaixo

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38931
    Leo
    Participant

      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

      #38949
      Fábio Spak
      Participant

        Olá Leo, verifique se alguma linha ficou sem execução. Esse é o mesmo código/base de dados da vídeo aula?

        Fabio

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.