Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
342635c
1
Parent(s):
96b3405
removed dtypes print outs
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ with tab1:
|
|
138 |
displayholder = st.empty()
|
139 |
|
140 |
if st.button('Simulate appropriate pivots'):
|
141 |
-
with placeholder
|
142 |
if site_var1 == 'Draftkings':
|
143 |
working_roo = raw_baselines
|
144 |
working_roo.replace('', 0, inplace=True)
|
@@ -181,12 +181,10 @@ with tab1:
|
|
181 |
overall_file[x] = random.normal(overall_file['Median'],overall_file['STD'])
|
182 |
|
183 |
salary_file=salary_file.drop(['Player', 'Position', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD'], axis=1)
|
184 |
-
salary_file.astype('int').dtypes
|
185 |
|
186 |
salary_file = salary_file.div(1000)
|
187 |
|
188 |
overall_file=overall_file.drop(['Player', 'Position', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD'], axis=1)
|
189 |
-
overall_file.astype('int').dtypes
|
190 |
|
191 |
players_only = hold_file[['Player']]
|
192 |
raw_lineups_file = players_only
|
@@ -197,7 +195,6 @@ with tab1:
|
|
197 |
players_only[x] = raw_lineups_file[x].rank(ascending=False)
|
198 |
|
199 |
players_only=players_only.drop(['Player'], axis=1)
|
200 |
-
players_only.astype('int').dtypes
|
201 |
|
202 |
salary_2x_check = (overall_file - (salary_file*2))
|
203 |
salary_3x_check = (overall_file - (salary_file*3))
|
@@ -267,12 +264,10 @@ with tab1:
|
|
267 |
overall_file[x] = random.normal(overall_file['Median'],overall_file['STD'])
|
268 |
|
269 |
salary_file=salary_file.drop(['Player', 'Position', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD'], axis=1)
|
270 |
-
salary_file.astype('int').dtypes
|
271 |
|
272 |
salary_file = salary_file.div(1000)
|
273 |
|
274 |
overall_file=overall_file.drop(['Player', 'Position', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD'], axis=1)
|
275 |
-
overall_file.astype('int').dtypes
|
276 |
|
277 |
players_only = hold_file[['Player']]
|
278 |
raw_lineups_file = players_only
|
@@ -283,7 +278,6 @@ with tab1:
|
|
283 |
players_only[x] = raw_lineups_file[x].rank(ascending=False)
|
284 |
|
285 |
players_only=players_only.drop(['Player'], axis=1)
|
286 |
-
players_only.astype('int').dtypes
|
287 |
|
288 |
salary_2x_check = (overall_file - (salary_file*2))
|
289 |
salary_3x_check = (overall_file - (salary_file*3))
|
|
|
138 |
displayholder = st.empty()
|
139 |
|
140 |
if st.button('Simulate appropriate pivots'):
|
141 |
+
with placeholder:
|
142 |
if site_var1 == 'Draftkings':
|
143 |
working_roo = raw_baselines
|
144 |
working_roo.replace('', 0, inplace=True)
|
|
|
181 |
overall_file[x] = random.normal(overall_file['Median'],overall_file['STD'])
|
182 |
|
183 |
salary_file=salary_file.drop(['Player', 'Position', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD'], axis=1)
|
|
|
184 |
|
185 |
salary_file = salary_file.div(1000)
|
186 |
|
187 |
overall_file=overall_file.drop(['Player', 'Position', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD'], axis=1)
|
|
|
188 |
|
189 |
players_only = hold_file[['Player']]
|
190 |
raw_lineups_file = players_only
|
|
|
195 |
players_only[x] = raw_lineups_file[x].rank(ascending=False)
|
196 |
|
197 |
players_only=players_only.drop(['Player'], axis=1)
|
|
|
198 |
|
199 |
salary_2x_check = (overall_file - (salary_file*2))
|
200 |
salary_3x_check = (overall_file - (salary_file*3))
|
|
|
264 |
overall_file[x] = random.normal(overall_file['Median'],overall_file['STD'])
|
265 |
|
266 |
salary_file=salary_file.drop(['Player', 'Position', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD'], axis=1)
|
|
|
267 |
|
268 |
salary_file = salary_file.div(1000)
|
269 |
|
270 |
overall_file=overall_file.drop(['Player', 'Position', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD'], axis=1)
|
|
|
271 |
|
272 |
players_only = hold_file[['Player']]
|
273 |
raw_lineups_file = players_only
|
|
|
278 |
players_only[x] = raw_lineups_file[x].rank(ascending=False)
|
279 |
|
280 |
players_only=players_only.drop(['Player'], axis=1)
|
|
|
281 |
|
282 |
salary_2x_check = (overall_file - (salary_file*2))
|
283 |
salary_3x_check = (overall_file - (salary_file*3))
|