Commit
·
f232c49
1
Parent(s):
9157013
V2-Liste_MAP_Stat_03
Browse files- __pycache__/statistiques.cpython-312.pyc +0 -0
- statistiques.py +1 -1
- x Old/V1 Liste et Map +1 -1
__pycache__/statistiques.cpython-312.pyc
ADDED
|
Binary file (2.56 kB). View file
|
|
|
statistiques.py
CHANGED
|
@@ -5,7 +5,7 @@ import plotly.express as px
|
|
| 5 |
from data_manager import get_data
|
| 6 |
|
| 7 |
def display_companies_by_sector(df):
|
| 8 |
-
sector_counts = df['
|
| 9 |
sector_counts.columns = ['Secteur', 'Nombre']
|
| 10 |
fig = px.bar(sector_counts, x='Secteur', y='Nombre', title="Répartition des entreprises par secteur d'activité",
|
| 11 |
color='Nombre', labels={'Nombre':'Nombre d\'entreprises'}, template='plotly_white')
|
|
|
|
| 5 |
from data_manager import get_data
|
| 6 |
|
| 7 |
def display_companies_by_sector(df):
|
| 8 |
+
sector_counts = df['Libellé groupe NAF'].value_counts().reset_index()
|
| 9 |
sector_counts.columns = ['Secteur', 'Nombre']
|
| 10 |
fig = px.bar(sector_counts, x='Secteur', y='Nombre', title="Répartition des entreprises par secteur d'activité",
|
| 11 |
color='Nombre', labels={'Nombre':'Nombre d\'entreprises'}, template='plotly_white')
|
x Old/V1 Liste et Map
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
Subproject commit
|
|
|
|
| 1 |
+
Subproject commit 52a6b133d69cf45f3b24207c01b53c0734c755c2
|