Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ def get_correlated_portfolio_for_sim(Total_Sample_Size):
|
|
202 |
sizesplit = round(Total_Sample_Size * sharp_split)
|
203 |
|
204 |
RandomPortfolio, maps_dict, ranges_dict, full_pos_player_dict = create_random_portfolio(sizesplit, raw_baselines)
|
205 |
-
stack_num = random.randint(1,
|
206 |
stacking_dict = create_stack_options(raw_baselines, stack_num)
|
207 |
|
208 |
RandomPortfolio['QB'] = pd.Series(list(RandomPortfolio['QB'].map(qb_dict)), dtype="string[pyarrow]")
|
@@ -217,6 +217,8 @@ def get_correlated_portfolio_for_sim(Total_Sample_Size):
|
|
217 |
RandomPortfolio = RandomPortfolio[RandomPortfolio['plyr_count'] == 8].drop(columns=['plyr_list','plyr_count']).\
|
218 |
reset_index(drop=True)
|
219 |
|
|
|
|
|
220 |
del sizesplit
|
221 |
del full_pos_player_dict
|
222 |
del ranges_dict
|
|
|
202 |
sizesplit = round(Total_Sample_Size * sharp_split)
|
203 |
|
204 |
RandomPortfolio, maps_dict, ranges_dict, full_pos_player_dict = create_random_portfolio(sizesplit, raw_baselines)
|
205 |
+
stack_num = random.randint(1, 2)
|
206 |
stacking_dict = create_stack_options(raw_baselines, stack_num)
|
207 |
|
208 |
RandomPortfolio['QB'] = pd.Series(list(RandomPortfolio['QB'].map(qb_dict)), dtype="string[pyarrow]")
|
|
|
217 |
RandomPortfolio = RandomPortfolio[RandomPortfolio['plyr_count'] == 8].drop(columns=['plyr_list','plyr_count']).\
|
218 |
reset_index(drop=True)
|
219 |
|
220 |
+
st.write(RandomPortfolio.head(100))
|
221 |
+
|
222 |
del sizesplit
|
223 |
del full_pos_player_dict
|
224 |
del ranges_dict
|