Skip to content

Commit

Permalink
*update main dashboard
Browse files Browse the repository at this point in the history
*update model.pkl
  • Loading branch information
AuHoh committed Jul 7, 2023
1 parent fe238a6 commit 0e87124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Binary file modified api/tests/model.pkl
Binary file not shown.
12 changes: 6 additions & 6 deletions dashboard/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ def get_data():
# Vérifier si des données correspondent à l'ID sélectionné
if not filtered_df.empty:
st.subheader(f"Profil du client pour l'ID prêt sélectionné : {ID_pret}")
st.write(f"Genre du client : {filtered_df['CODE_GENDER'][0]}")
age_client = (filtered_df['DAYS_BIRTH'] / 365).round(0)
st.write(f"Âge : {age_client[0]}")
st.write(f"Situation familiale : {filtered_df['NAME_FAMILY_STATUS'][0]}")
st.write(f"Nombre d'enfants : {filtered_df['CNT_CHILDREN'][0]}")
st.write(f"Emploi : {filtered_df['OCCUPATION_TYPE'][0]}")
st.write(f"Genre du client : {filtered_df['CODE_GENDER'].values[0]}")
age_client = (filtered_df['DAYS_BIRTH'].values[0] / 365).round(0)
st.write(f"Âge : {age_client}")
st.write(f"Situation familiale : {filtered_df['NAME_FAMILY_STATUS'].values[0]}")
st.write(f"Nombre d'enfants : {filtered_df['CNT_CHILDREN'].values[0]}")
st.write(f"Emploi : {filtered_df['OCCUPATION_TYPE'].values[0]}")

revenu = float(filtered_df['AMT_INCOME_TOTAL'].values[0])
st.write(f"Revenus annuels du client : {revenu}")
Expand Down

0 comments on commit 0e87124

Please sign in to comment.