diff --git a/streamlit_app.py b/streamlit_app.py index df3f67161591dabeb59589ee7d60d1ed052149c5..c548a0f4242c31eb95977a6edc019d287656dd7e 100644 --- a/streamlit_app.py +++ b/streamlit_app.py @@ -100,7 +100,7 @@ if 'logged_in' in st.session_state and st.session_state.logged_in: cursor.execute("SELECT DATE_LUNDI, NB_HEURES FROM SALAIRE_SEMAINE WHERE NUMERO_EMPLOYE = ?", (int(employe.split(" - ")[0]),)) df=pd.DataFrame(cursor.fetchall(), columns=[desc[0] for desc in cursor.description]) st.write("Nombre d'heures travaillées par semaine pour l'employé sélectionné") - st.dataframe(df, hide_index=True) + st.dataframe(df, hide_index=True, use_container_width=True) import matplotlib.pyplot as plt # Filter the last 10 weeks @@ -127,7 +127,7 @@ if 'logged_in' in st.session_state and st.session_state.logged_in: cursor.execute("SELECT DATE_LUNDI, NB_PRODUCTION FROM SALAIRE_SEMAINE WHERE NUMERO_EMPLOYE = ?", (int(employe.split(" - ")[0]),)) df=pd.DataFrame(cursor.fetchall(), columns=[desc[0] for desc in cursor.description]) st.write("Nombre de production par semaine pour l'employé sélectionné (question 4)") - st.dataframe(df, hide_index=True) + st.dataframe(df, hide_index=True, use_container_width=True) import matplotlib.pyplot as plt # Filter the last 10 weeks