Spaces:
Runtime error
Runtime error
Commit
·
27cfa3c
1
Parent(s):
e383d26
V1-Liste_MAP_01
Browse files
organisations_engagees.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
|
| 2 |
import streamlit as st
|
| 3 |
import pandas as pd
|
| 4 |
from data_manager import get_data
|
|
@@ -8,8 +7,11 @@ def display_organisations_engagees():
|
|
| 8 |
st.markdown("## OPEN DATA RSE")
|
| 9 |
st.markdown("### Découvrez les organisations engagées RSE de Bordeaux Métropole")
|
| 10 |
|
| 11 |
-
data,
|
| 12 |
if data:
|
|
|
|
|
|
|
|
|
|
| 13 |
df = pd.DataFrame(data)
|
| 14 |
df = df.rename(columns={
|
| 15 |
"nom_courant_denomination": "Nom",
|
|
@@ -20,4 +22,3 @@ def display_organisations_engagees():
|
|
| 20 |
})
|
| 21 |
df = df[["Nom", "Commune", "Section NAF", "Effectif", "Action RSE"]]
|
| 22 |
st.dataframe(df, width=None, height=None)
|
| 23 |
-
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
from data_manager import get_data
|
|
|
|
| 7 |
st.markdown("## OPEN DATA RSE")
|
| 8 |
st.markdown("### Découvrez les organisations engagées RSE de Bordeaux Métropole")
|
| 9 |
|
| 10 |
+
data, total_hits = get_data()
|
| 11 |
if data:
|
| 12 |
+
# Calcul du nombre total d'organisations
|
| 13 |
+
st.markdown(f"Nombre d'organisations : {total_hits}")
|
| 14 |
+
|
| 15 |
df = pd.DataFrame(data)
|
| 16 |
df = df.rename(columns={
|
| 17 |
"nom_courant_denomination": "Nom",
|
|
|
|
| 22 |
})
|
| 23 |
df = df[["Nom", "Commune", "Section NAF", "Effectif", "Action RSE"]]
|
| 24 |
st.dataframe(df, width=None, height=None)
|
|
|