Commit
·
a3ba058
1
Parent(s):
c5b60b4
Pytorch v.42
Browse files- organisations_engagees.py +4 -16
organisations_engagees.py
CHANGED
|
@@ -5,22 +5,10 @@ import requests
|
|
| 5 |
def display_organisations_engagees(data):
|
| 6 |
st.markdown("## OPEN DATA RSE")
|
| 7 |
st.markdown("### Découvrez les organisations engagées RSE de la métropole de Bordeaux")
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
st.markdown(f"Nombre d'établissements : {num_etablissements}")
|
| 13 |
-
df = pd.DataFrame(data)
|
| 14 |
-
df = df[['nom_courant_denomination', 'commune', 'libelle_section_naf', 'tranche_effectif_entreprise', 'action_rse']].rename(columns={
|
| 15 |
-
'nom_courant_denomination': 'Nom',
|
| 16 |
-
'commune': 'Commune',
|
| 17 |
-
'libelle_section_naf': 'Section NAF',
|
| 18 |
-
'tranche_effectif_entreprise': 'Effectif',
|
| 19 |
-
'action_rse': 'Action RSE'
|
| 20 |
-
})
|
| 21 |
-
st.dataframe(df)
|
| 22 |
-
else:
|
| 23 |
-
st.error("Données OPEN DATA RSE Bordeaux non disponibles actuellement. Veuillez vous reconnecter ultérieurement.")
|
| 24 |
|
| 25 |
if __name__ == "__main__":
|
| 26 |
display_organisations_engagees()
|
|
|
|
| 5 |
def display_organisations_engagees(data):
|
| 6 |
st.markdown("## OPEN DATA RSE")
|
| 7 |
st.markdown("### Découvrez les organisations engagées RSE de la métropole de Bordeaux")
|
| 8 |
+
|
| 9 |
+
if not data:
|
| 10 |
+
st.write("No data available.")
|
| 11 |
+
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
if __name__ == "__main__":
|
| 14 |
display_organisations_engagees()
|