diff --git a/pages/Vue_globale.py b/pages/Vue_globale.py index 0c16f63..a5c3308 100644 --- a/pages/Vue_globale.py +++ b/pages/Vue_globale.py @@ -125,9 +125,9 @@ def calculate_main_metrics(df_nbr_hospi, df_capacite_hospi, selected_sex='Ensemb metrics[f"hospi_{year}"] = total_hospi # Calcul des lits disponibles par année - lits_disponibles = df_capacite_hospi.groupby('year')['total_lit_hospi_complete'].sum().reset_index() + lits_disponibles = df_capacite_hospi.groupby('year')['lit_hospi_complete'].sum().reset_index() for year in range(2018, 2023): - metrics[f"lits_{year}"] = lits_disponibles[lits_disponibles['year'].dt.year == year]['total_lit_hospi_complete'].sum() + metrics[f"lits_{year}"] = lits_disponibles[lits_disponibles['year'].dt.year == year]['lit_hospi_complete'].sum() return metrics diff --git a/requirements.txt b/requirements.txt index 8ac473c..fd382c8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,13 +8,12 @@ numpy seaborn db-dtypes pygwalker -langchain_openai langchain langgraph +langchain_openai langchain-community sqlalchemy-bigquery sqlalchemy langchain-experimental e2b -langchain_experimental e2b-code-interpreter \ No newline at end of file