2
respostas

SEGUE O TEXTO QUE NÃO PUDE COLOCAR NA DUVIDA ANTERIOR

Passing palette without assigning hue is deprecated and will be removed in v0.14.0. Assign the x variable to hue and set legend=False for the same effect.

sns.boxplot(data=df, x='sexo_biologico', y='idade', palette=[AZUL_1, AQUA_1], ax=ax) :24: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] texto_anotacao1 = f"Mínimo = {df.groupby('sexo_biologico')['idade'].min()[1]}\n" :25: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] f"1º quartil = {df.groupby('sexo_biologico')['idade'].quantile(.25)[1]}\n" :26: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] f"2º quartil = {df.groupby('sexo_biologico')['idade'].median()[1]}\n" :27: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] f"3º quartil = {df.groupby('sexo_biologico')['idade'].quantile(.75)[1]}\n" :28: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] f"Máximo = {df.groupby('sexo_biologico')['idade'].max()[1]}" :30: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] texto_anotacao2 = f"Mínimo = {df.groupby('sexo_biologico')['idade'].min()[0]}\n" :31: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] f"1º quartil = {df.groupby('sexo_biologico')['idade'].quantile(.25)[0]}\n" :32: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] f"2º quartil = {df.groupby('sexo_biologico')['idade'].median()[0]}\n" :33: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] f"3º quartil = {df.groupby('sexo_biologico')['idade'].quantile(.75)[0]}\n" :34: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] f"Máximo = {df.groupby('sexo_biologico')['idade'].max()[0]}" <module 'matplotlib.pyplot' from '/usr/local/lib/python3.11/dist-packages/matplotlib/pyplot.py'> Insira aqui a descrição dessa imagem para ajudar na acessibilidade nÃO CONSIGO FAZER UPLOAD DO GRÁFICO, EU JÁ TENTEI NO ÍCONE DE FAZER UPLOAD E ARRASTANDO DA PASTA, MAS NÃO ENTRA AQUI

2 respostas

Olá, estudante. Tudo bem?

Sobre o texto que aparece, eu te respondi nesse tópico o que é e como resolver. Já sobre os tons de cores, imagino que seja uma questão da configuração das cores do seu monitor já que eu testei o código enviado no ultimo tópico e não tive problemas parecidos por aqui. Se puder enviar o seu projeto no Colab, eu testo novamente o código completo e te retorno.

Espero ter ajudado!

Siga firme nos seus estudos e conte com o fórum sempre que precisar.

Abraços :)

Caso este post tenha lhe ajudado, por favor, marcar como solucionado

Oi Mike, ok, vou refazer conforme sua orientação Obrigada