Spaces:
Running
Running
Update src/modules/ml_dashboard.py
Browse files
src/modules/ml_dashboard.py
CHANGED
|
@@ -51,7 +51,7 @@ def show_ml_features(client, sheet_name):
|
|
| 51 |
capital_dehors = 0
|
| 52 |
if not df_prets_master.empty and 'Montant_Capital' in df_prets_master.columns:
|
| 53 |
df_prets_master['Montant_Capital_Num'] = pd.to_numeric(df_prets_master['Montant_Capital'], errors='coerce').fillna(0)
|
| 54 |
-
capital_dehors = df_prets_master[df_prets_master['Statut'] != '
|
| 55 |
|
| 56 |
# 3. Flux attendu (Montant_Total des prêts non remboursés)
|
| 57 |
flux_attendu = 0
|
|
|
|
| 51 |
capital_dehors = 0
|
| 52 |
if not df_prets_master.empty and 'Montant_Capital' in df_prets_master.columns:
|
| 53 |
df_prets_master['Montant_Capital_Num'] = pd.to_numeric(df_prets_master['Montant_Capital'], errors='coerce').fillna(0)
|
| 54 |
+
capital_dehors = df_prets_master[df_prets_master['Statut'] != 'TERMINE']['Montant_Capital_Num'].sum()
|
| 55 |
|
| 56 |
# 3. Flux attendu (Montant_Total des prêts non remboursés)
|
| 57 |
flux_attendu = 0
|