James McCool
commited on
Commit
·
6b15752
1
Parent(s):
8a6a688
Enhance column configuration in app.py by adding 'Similarity Score' for projected lineup diversity. This update includes help text, width specifications, and value constraints to improve user interaction and clarity.
Browse files
app.py
CHANGED
@@ -1127,7 +1127,7 @@ with tab2:
|
|
1127 |
st.session_state['working_frame'] = parsed_frame.reset_index(drop=True)
|
1128 |
st.session_state['export_merge'] = st.session_state['working_frame'].copy()
|
1129 |
|
1130 |
-
with st.container(
|
1131 |
if 'export_base' not in st.session_state:
|
1132 |
st.session_state['export_base'] = pd.DataFrame(columns=st.session_state['working_frame'].columns)
|
1133 |
|
@@ -1220,7 +1220,14 @@ with tab2:
|
|
1220 |
width="small",
|
1221 |
min_value=-1.0,
|
1222 |
max_value=1.0
|
1223 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1224 |
},
|
1225 |
height=500,
|
1226 |
use_container_width=True,
|
|
|
1127 |
st.session_state['working_frame'] = parsed_frame.reset_index(drop=True)
|
1128 |
st.session_state['export_merge'] = st.session_state['working_frame'].copy()
|
1129 |
|
1130 |
+
with st.container():
|
1131 |
if 'export_base' not in st.session_state:
|
1132 |
st.session_state['export_base'] = pd.DataFrame(columns=st.session_state['working_frame'].columns)
|
1133 |
|
|
|
1220 |
width="small",
|
1221 |
min_value=-1.0,
|
1222 |
max_value=1.0
|
1223 |
+
),
|
1224 |
+
"Similarity Score": st.column_config.NumberColumn(
|
1225 |
+
"Diversity",
|
1226 |
+
help="Projected lineup diversity",
|
1227 |
+
width="small",
|
1228 |
+
min_value=0.0,
|
1229 |
+
max_value=1.0
|
1230 |
+
),
|
1231 |
},
|
1232 |
height=500,
|
1233 |
use_container_width=True,
|