Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -230,7 +230,9 @@ def calculate_range_var(count, min_val, FieldStrength, field_growth):
|
|
230 |
def create_random_portfolio(Total_Sample_Size, raw_baselines, field_growth):
|
231 |
|
232 |
full_pos_player_dict = get_overall_merged_df()
|
233 |
-
|
|
|
|
|
234 |
|
235 |
field_growth_rounded = round(field_growth)
|
236 |
ranges_dict = {}
|
|
|
230 |
def create_random_portfolio(Total_Sample_Size, raw_baselines, field_growth):
|
231 |
|
232 |
full_pos_player_dict = get_overall_merged_df()
|
233 |
+
qb_baselines = raw_baselines[raw_baselines['Position'] == 'QB']
|
234 |
+
qb_baselines = qb_baselines.drop_duplicates(subset='Team')
|
235 |
+
max_var = len(qb_baselines[qb_baselines['Position'] == 'QB'])
|
236 |
|
237 |
field_growth_rounded = round(field_growth)
|
238 |
ranges_dict = {}
|