Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -85,9 +85,9 @@ with tab2:
|
|
85 |
st.cache_data.clear()
|
86 |
pitcher_proj, hitter_proj = init_baselines()
|
87 |
raw_frame = hitter_proj.copy()
|
88 |
-
export_frame_h = raw_frame[['Name', 'Team', 'PA', 'Ceiling_var', 'Walk%', 'Walks', 'xHits', 'Singles%', 'Singles', 'Doubles%', 'Doubles',
|
89 |
'xHR%', 'Homeruns', 'Runs%', 'Runs', 'RBI%', 'RBI', 'Steal%', 'Stolen_bases', 'UD_fpts', 'ADP']]
|
90 |
-
disp_frame = raw_frame[['Name', 'Team', 'PA', 'Walks', 'xHits', 'Singles', 'Doubles',
|
91 |
'Homeruns', 'Runs', 'RBI', 'Stolen_bases', 'UD_fpts', 'ADP']]
|
92 |
st.dataframe(disp_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
93 |
|
|
|
85 |
st.cache_data.clear()
|
86 |
pitcher_proj, hitter_proj = init_baselines()
|
87 |
raw_frame = hitter_proj.copy()
|
88 |
+
export_frame_h = raw_frame[['Name', 'Position', 'Team', 'PA', 'Ceiling_var', 'Walk%', 'Walks', 'xHits', 'Singles%', 'Singles', 'Doubles%', 'Doubles',
|
89 |
'xHR%', 'Homeruns', 'Runs%', 'Runs', 'RBI%', 'RBI', 'Steal%', 'Stolen_bases', 'UD_fpts', 'ADP']]
|
90 |
+
disp_frame = raw_frame[['Name', 'Position', 'Team', 'PA', 'Walks', 'xHits', 'Singles', 'Doubles',
|
91 |
'Homeruns', 'Runs', 'RBI', 'Stolen_bases', 'UD_fpts', 'ADP']]
|
92 |
st.dataframe(disp_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
93 |
|