Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ with tab1:
|
|
65 |
if st.button("Reset Data", key='reset1'):
|
66 |
st.cache_data.clear()
|
67 |
pitcher_proj, hitter_proj = init_baselines()
|
68 |
-
raw_frame = pitcher_proj
|
69 |
export_frame_sp = raw_frame[['Name', 'Team', 'TBF', 'Ceiling_var', 'True_AVG', 'Hits', 'Singles%', 'Singles', 'Doubles%', 'Doubles', 'xHR%', 'Homeruns', 'Strikeout%', 'Strikeouts',
|
70 |
'Walk%', 'Walks', 'Runs%', 'Runs', 'ERA', 'Wins', 'Quality_starts', 'ADP', 'UD_fpts']]
|
71 |
disp_frame = raw_frame[['Name', 'Team', 'TBF', 'True_AVG', 'Hits', 'Singles', 'Doubles', 'Homeruns', 'Strikeouts',
|
@@ -84,7 +84,7 @@ with tab2:
|
|
84 |
if st.button("Reset Data", key='reset2'):
|
85 |
st.cache_data.clear()
|
86 |
pitcher_proj, hitter_proj = init_baselines()
|
87 |
-
raw_frame = hitter_proj
|
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',
|
@@ -116,7 +116,7 @@ with tab3:
|
|
116 |
|
117 |
with df_hold_container.container():
|
118 |
|
119 |
-
df = pitcher_proj
|
120 |
|
121 |
total_sims = 5000
|
122 |
|
@@ -192,7 +192,7 @@ with tab4:
|
|
192 |
|
193 |
with df_hold_container.container():
|
194 |
|
195 |
-
df = hitter_proj
|
196 |
|
197 |
total_sims = 5000
|
198 |
|
|
|
65 |
if st.button("Reset Data", key='reset1'):
|
66 |
st.cache_data.clear()
|
67 |
pitcher_proj, hitter_proj = init_baselines()
|
68 |
+
raw_frame = pitcher_proj.copy()
|
69 |
export_frame_sp = raw_frame[['Name', 'Team', 'TBF', 'Ceiling_var', 'True_AVG', 'Hits', 'Singles%', 'Singles', 'Doubles%', 'Doubles', 'xHR%', 'Homeruns', 'Strikeout%', 'Strikeouts',
|
70 |
'Walk%', 'Walks', 'Runs%', 'Runs', 'ERA', 'Wins', 'Quality_starts', 'ADP', 'UD_fpts']]
|
71 |
disp_frame = raw_frame[['Name', 'Team', 'TBF', 'True_AVG', 'Hits', 'Singles', 'Doubles', 'Homeruns', 'Strikeouts',
|
|
|
84 |
if st.button("Reset Data", key='reset2'):
|
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',
|
|
|
116 |
|
117 |
with df_hold_container.container():
|
118 |
|
119 |
+
df = pitcher_proj.copy()
|
120 |
|
121 |
total_sims = 5000
|
122 |
|
|
|
192 |
|
193 |
with df_hold_container.container():
|
194 |
|
195 |
+
df = hitter_proj.copy()
|
196 |
|
197 |
total_sims = 5000
|
198 |
|