Spaces:
Running
Running
James McCool
commited on
Commit
·
7ae617b
1
Parent(s):
4b8ce80
added some writing
Browse files
app.py
CHANGED
@@ -290,8 +290,9 @@ with tab4:
|
|
290 |
with df_hold_container.container():
|
291 |
|
292 |
df = player_stats
|
|
|
293 |
|
294 |
-
total_sims =
|
295 |
|
296 |
df.replace("", 0, inplace=True)
|
297 |
|
@@ -335,11 +336,11 @@ with tab4:
|
|
335 |
overall_file[x] = np.random.normal(overall_file['Median'],overall_file['STD'])
|
336 |
|
337 |
overall_file=overall_file.drop(['Player', 'Floor', 'Median', 'Ceiling', 'STD'], axis=1)
|
338 |
-
overall_file.astype('int').dtypes
|
339 |
|
340 |
players_only = hold_file[['Player']]
|
341 |
|
342 |
player_outcomes = pd.merge(players_only, overall_file, left_index=True, right_index=True)
|
|
|
343 |
|
344 |
players_only['Mean_Outcome'] = overall_file.mean(axis=1)
|
345 |
players_only['Prop'] = prop_var
|
|
|
290 |
with df_hold_container.container():
|
291 |
|
292 |
df = player_stats
|
293 |
+
st.write("sim started")
|
294 |
|
295 |
+
total_sims = 1000
|
296 |
|
297 |
df.replace("", 0, inplace=True)
|
298 |
|
|
|
336 |
overall_file[x] = np.random.normal(overall_file['Median'],overall_file['STD'])
|
337 |
|
338 |
overall_file=overall_file.drop(['Player', 'Floor', 'Median', 'Ceiling', 'STD'], axis=1)
|
|
|
339 |
|
340 |
players_only = hold_file[['Player']]
|
341 |
|
342 |
player_outcomes = pd.merge(players_only, overall_file, left_index=True, right_index=True)
|
343 |
+
st.write("sim finished, calculating outcomes")
|
344 |
|
345 |
players_only['Mean_Outcome'] = overall_file.mean(axis=1)
|
346 |
players_only['Prop'] = prop_var
|