Commit
·
4c61496
1
Parent(s):
d90e58a
Pytorch V0.22
Browse files
__pycache__/localisation.cpython-312.pyc
CHANGED
|
Binary files a/__pycache__/localisation.cpython-312.pyc and b/__pycache__/localisation.cpython-312.pyc differ
|
|
|
__pycache__/organisations_engagees.cpython-312.pyc
CHANGED
|
Binary files a/__pycache__/organisations_engagees.cpython-312.pyc and b/__pycache__/organisations_engagees.cpython-312.pyc differ
|
|
|
organisations_engagees.py
CHANGED
|
@@ -5,8 +5,9 @@ def display_organisations_engagees(data):
|
|
| 5 |
st.markdown("## OPEN DATA RSE")
|
| 6 |
st.markdown("### Découvrez les organisations engagées RSE de la métropole de Bordeaux")
|
| 7 |
num_etablissements = len(data)
|
| 8 |
-
|
| 9 |
-
if
|
|
|
|
| 10 |
df = pd.DataFrame(data)
|
| 11 |
st.dataframe(df[['nom_courant_denomination', 'commune', 'libelle_section_naf', 'tranche_effectif_entreprise', 'action_rse']].rename(columns={
|
| 12 |
'nom_courant_denomination': 'Nom',
|
|
@@ -15,3 +16,5 @@ def display_organisations_engagees(data):
|
|
| 15 |
'tranche_effectif_entreprise': 'Effectif',
|
| 16 |
'action_rse': 'Action RSE'
|
| 17 |
}))
|
|
|
|
|
|
|
|
|
| 5 |
st.markdown("## OPEN DATA RSE")
|
| 6 |
st.markdown("### Découvrez les organisations engagées RSE de la métropole de Bordeaux")
|
| 7 |
num_etablissements = len(data)
|
| 8 |
+
|
| 9 |
+
if num_etablissements > 0:
|
| 10 |
+
st.markdown(f"Nombre d'établissements : {num_etablissements}")
|
| 11 |
df = pd.DataFrame(data)
|
| 12 |
st.dataframe(df[['nom_courant_denomination', 'commune', 'libelle_section_naf', 'tranche_effectif_entreprise', 'action_rse']].rename(columns={
|
| 13 |
'nom_courant_denomination': 'Nom',
|
|
|
|
| 16 |
'tranche_effectif_entreprise': 'Effectif',
|
| 17 |
'action_rse': 'Action RSE'
|
| 18 |
}))
|
| 19 |
+
else:
|
| 20 |
+
st.error("Données OPEN DATA RSE Bordeaux non disponibles actuellement. Veuillez vous reconnecter ultérieurement.")
|