Created
May 23, 2021 19:57
-
-
Save KhalidCK/4dc57feb7500a720c37077c53b97792b to your computer and use it in GitHub Desktop.
plt blog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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