last commit plies

This commit is contained in:
Jesselyn Mu
2025-04-13 15:18:39 +07:00
parent 53ca7c3072
commit cfb12f157b
4 changed files with 7 additions and 1 deletions

View File

@ -305,12 +305,14 @@ def show_exploration():
filter_employee_id = st.text_input("Filter berdasarkan ID Karyawan", placeholder="Contoh: EM12345")
with col2:
filter_join_date = st.date_input("Filter berdasarkan Tanggal Masuk", value=None)
filter_join_date = st.date_input("Filter berdasarkan Tanggal Masuk Dimulai Dari", value=None)
df = get_all_employee_data(filter_employee_id, filter_join_date)
if not df.empty:
st.dataframe(df)
st.caption("Keterangan: Geser ke kanan untuk melihat keseluruhan data")
csv = df.to_csv(index=False)
st.download_button(
label="Download Data sebagai CSV",

View File

@ -304,6 +304,8 @@ def show_pimpinan_exploration():
# Tampilkan data
st.dataframe(df)
st.caption("Keterangan: Geser ke kanan untuk melihat keseluruhan data")
# Tombol untuk download CSV
csv = df.to_csv(index=False)
st.download_button(

View File

@ -376,6 +376,8 @@ def show_report():
# Tampilkan data dalam bentuk tabel
st.dataframe(df)
st.caption("Keterangan: Geser ke kanan untuk melihat keseluruhan data")
# Konversi DataFrame ke CSV untuk di-download
csv = df.to_csv(index=False)
st.download_button(