Código Inválido no Anaconda – Geração de Histograma

Home Forums Fórum Python para Finanças: Análise de Dados e Machine Learning Código Inválido no Anaconda – Geração de Histograma

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23389
    dougtaleb
    Participant

      Olá Professor,

      Ao tentar utilizar o código ” sns.histplot(acoes_df[‘GOL’]); ” no Jupyter; aparece o seguinte erro:

      —————————————————————————
      AttributeError Traceback (most recent call last)
      <ipython-input-25-609f3eb789cb> in <module>
      —-> 1 sns.histplot(acoes_df[‘GOL’]);

      AttributeError: module ‘seaborn’ has no attribute ‘histplot’ ”

       

      Até esse erro, todos os códigos que estava escrevendo estava indo sem problemas; não sei acabei escrevendo algo errado, mas não está indo. Poderia me auxiliar por gentileza?

      #23412
      Fábio Spak
      Participant

        Boa tarde dougtaleb, tente executar o comando abaixo em uma célula do Jupyter.

        !pip install -U seaborn

        Em seguida, tente executar o código novamente.

        Fabio

         

        #23414
        dougtaleb
        Participant

          Boa tarde, fiz o teste novamente, porém o erro persiste. Print do problema anexo.

          #23416
          Fábio Spak
          Participant

            Boa tarde dougtaleb, é estranho, pois nos meus testes aqui no Jupyter funcionou normalmente. Veja abaixo:

            Tente executar os comandos abaixo no prompt do anaconda executando ele como administrador:

            pip uninstall seaborn
            
            pip install seaborn

            Em seguida, reinicie o kernel do Jupyter e tente executar o código novamente.

            Fabio

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