Skip to content

Commit

Permalink
adding requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Arctusol committed Dec 2, 2024
1 parent b115735 commit e34dca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pages/Vue_globale.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e34dca4

Please sign in to comment.