|
|
|
import streamlit as st |
|
import pandas as pd |
|
|
|
def display_organisations_engagees(data): |
|
st.markdown("## OPEN DATA RSE") |
|
st.markdown("### Découvrez les organisations engagées RSE de la métropole de Bordeaux") |
|
|
|
if not data: |
|
st.write("No data available.") |
|
else: |
|
|
|
df = pd.DataFrame(data) |
|
st.dataframe(df) |
|
|
|
if __name__ == "__main__": |
|
|
|
|
|
test_data = [ |
|
{'nom': 'Entreprise A', 'adresse': 'Adresse A', 'engagement_rse': 'Oui'}, |
|
{'nom': 'Entreprise B', 'adresse': 'Adresse B', 'engagement_rse': 'Non'}, |
|
|
|
] |
|
display_organisations_engagees(test_data) |
|
|