import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
url = 'https://raw.githubusercontent.com/Gabriellemga/Praticando_Python/refs/heads/main/Dados_distribui%C3%A7%C3%A3o_seaborn/atividade_9.csv'
df = pd.read_csv(url)
df.head()
fig, ax = plt.subplots(figsize = (10,8))
ax = sns.violinplot(data = df, y = 'Horas de Trabalho Semanais',x = 'Setor', hue = 'Setor', palette = ['#FFA07A', '#d2b4de', '#a9dfbf'])
ax.set_title('Distribuição Das Horas De Trabalho Semanais', fontsize=18)
ax.set_ylabel('Horas De Trabalho Semanais', fontsize=12)
ax.set_xlabel('Setor', fontsize=12)
ax.set_ylim(10,70)
plt.tight_layout()
plt.show()