Skip to content

Instantly share code, notes, and snippets.

@KhalidCK
Created May 23, 2021 19:57
Show Gist options
  • Save KhalidCK/4dc57feb7500a720c37077c53b97792b to your computer and use it in GitHub Desktop.
Save KhalidCK/4dc57feb7500a720c37077c53b97792b to your computer and use it in GitHub Desktop.
plt blog
"""
Notes
- `france` est de type Pandas dataframe
- on passe en pourcentage les valeurs pour comparer les départements
pourcentage = (nb tranche d'age pour un departement) / (nombre total de personne dans un departement)
"""
france[france.departements.isin(['59', '75', '67'])]
ax = sns.barplot(x="departements",
y="pourcentage",
hue="tranche", data=france)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment