Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +10 -8
src/streamlit_app.py
CHANGED
|
@@ -821,6 +821,15 @@ if run_calc:
|
|
| 821 |
result_df['Ranking'] = range(1, len(result_df) + 1)
|
| 822 |
st.dataframe(result_df, use_container_width=True)
|
| 823 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 824 |
# --- PERBAIKAN GRAFIK PROFILE MATCHING ---
|
| 825 |
st.subheader("π Hasil Profile Matching - Ranking Alternatif")
|
| 826 |
# Ubah data Series ke DataFrame untuk Altair
|
|
@@ -842,11 +851,4 @@ if run_calc:
|
|
| 842 |
st.write("π Alternatif terbaik berdasarkan Profile Matching:")
|
| 843 |
st.success(f"{final_scores_pm.idxmax()} dengan skor {final_scores_pm.max():.3f}")
|
| 844 |
|
| 845 |
-
|
| 846 |
-
st.subheader("π Breakdown Perhitungan")
|
| 847 |
-
breakdown_df = pd.DataFrame({
|
| 848 |
-
'NCF (Core Factor)': ncf.round(3),
|
| 849 |
-
'NSF (Secondary Factor)': nsf.round(3),
|
| 850 |
-
'Skor Akhir': final_scores_pm.round(3)
|
| 851 |
-
})
|
| 852 |
-
st.dataframe(breakdown_df, use_container_width=True)
|
|
|
|
| 821 |
result_df['Ranking'] = range(1, len(result_df) + 1)
|
| 822 |
st.dataframe(result_df, use_container_width=True)
|
| 823 |
|
| 824 |
+
# Tampilkan breakdown
|
| 825 |
+
st.subheader("π Breakdown Perhitungan")
|
| 826 |
+
breakdown_df = pd.DataFrame({
|
| 827 |
+
'NCF (Core Factor)': ncf.round(3),
|
| 828 |
+
'NSF (Secondary Factor)': nsf.round(3),
|
| 829 |
+
'Skor Akhir': final_scores_pm.round(3)
|
| 830 |
+
})
|
| 831 |
+
st.dataframe(breakdown_df, use_container_width=True)
|
| 832 |
+
|
| 833 |
# --- PERBAIKAN GRAFIK PROFILE MATCHING ---
|
| 834 |
st.subheader("π Hasil Profile Matching - Ranking Alternatif")
|
| 835 |
# Ubah data Series ke DataFrame untuk Altair
|
|
|
|
| 851 |
st.write("π Alternatif terbaik berdasarkan Profile Matching:")
|
| 852 |
st.success(f"{final_scores_pm.idxmax()} dengan skor {final_scores_pm.max():.3f}")
|
| 853 |
|
| 854 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|