Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ with tab3:
|
|
135 |
flex_file = df.copy()
|
136 |
flex_file.rename(columns={"Name": "Player"}, inplace = True)
|
137 |
flex_file['Floor'] = (flex_file['Median'] * .25)
|
138 |
-
flex_file['Ceiling'] = np.where((flex_file['Median'] + (flex_file['Median'] * flex_file['Ceiling_var'])) > stat_cap, stat_cap + (flex_file['Median']/
|
139 |
flex_file['STD'] = (flex_file['Median']/3)
|
140 |
flex_file = flex_file[['Player', 'Floor', 'Median', 'Ceiling', 'STD']]
|
141 |
|
@@ -147,7 +147,7 @@ with tab3:
|
|
147 |
overall_players = overall_file[['Player']]
|
148 |
|
149 |
for x in range(0,total_sims):
|
150 |
-
overall_file['g'] = np.random.gumbel(overall_file['Median'] * .
|
151 |
overall_file[x] = np.where((overall_file['g']<=overall_file['Ceiling']),overall_file['g'],overall_file['Ceiling'])
|
152 |
|
153 |
check_file = overall_file.copy()
|
|
|
135 |
flex_file = df.copy()
|
136 |
flex_file.rename(columns={"Name": "Player"}, inplace = True)
|
137 |
flex_file['Floor'] = (flex_file['Median'] * .25)
|
138 |
+
flex_file['Ceiling'] = np.where((flex_file['Median'] + (flex_file['Median'] * flex_file['Ceiling_var'])) > stat_cap, stat_cap + (flex_file['Median']/10), (flex_file['Median'] + (flex_file['Median'] * flex_file['Ceiling_var'])))
|
139 |
flex_file['STD'] = (flex_file['Median']/3)
|
140 |
flex_file = flex_file[['Player', 'Floor', 'Median', 'Ceiling', 'STD']]
|
141 |
|
|
|
147 |
overall_players = overall_file[['Player']]
|
148 |
|
149 |
for x in range(0,total_sims):
|
150 |
+
overall_file['g'] = np.random.gumbel(overall_file['Median'] * .75,overall_file['STD'])
|
151 |
overall_file[x] = np.where((overall_file['g']<=overall_file['Ceiling']),overall_file['g'],overall_file['Ceiling'])
|
152 |
|
153 |
check_file = overall_file.copy()
|