James McCool commited on
Commit
c1393ff
·
1 Parent(s): 517ef17

Add column configurations for 'Finish_percentile' and 'Lineup Edge' in app.py to enhance DataFrame display. This update includes help text, width specifications, and value constraints for improved user interaction and clarity.

Browse files
Files changed (1) hide show
  1. app.py +19 -1
app.py CHANGED
@@ -1205,7 +1205,25 @@ with tab2:
1205
  .background_gradient(axis=0)
1206
  .background_gradient(cmap='RdYlGn')
1207
  .background_gradient(cmap='RdYlGn_r', subset=['Finish_percentile', 'Own', 'Dupes'])
1208
- .format(freq_format, precision=2),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1209
  height=500,
1210
  use_container_width=True,
1211
  hide_index=True
 
1205
  .background_gradient(axis=0)
1206
  .background_gradient(cmap='RdYlGn')
1207
  .background_gradient(cmap='RdYlGn_r', subset=['Finish_percentile', 'Own', 'Dupes'])
1208
+ .format(freq_format, precision=2),
1209
+ column_config={
1210
+ "Finish_percentile": st.column_config.NumberColumn(
1211
+ "Finish%",
1212
+ help="Projected finishing percentile",
1213
+ width="small",
1214
+ min_value=0.0,
1215
+ max_value=1.0
1216
+ )
1217
+ },
1218
+ column_config={
1219
+ "Lineup Edge": st.column_config.NumberColumn(
1220
+ "Edge",
1221
+ help="Projected lineup edge",
1222
+ width="small",
1223
+ min_value=-1.0,
1224
+ max_value=1.0
1225
+ )
1226
+ },
1227
  height=500,
1228
  use_container_width=True,
1229
  hide_index=True