- This topic has 3 replies, 2 voices, and was last updated 5 years, 4 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
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
Tagged: Gráfico das ações – histograma
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?
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
Boa tarde, fiz o teste novamente, porém o erro persiste. Print do problema anexo.
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