Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -287,8 +287,6 @@ def get_correlated_dk_portfolio_for_sim(Total_Sample_Size, sharp_split, field_gr
|
|
287 |
|
288 |
RandomPortfolio, maps_dict, ranges_dict, full_pos_player_dict = create_random_portfolio(sizesplit, raw_baselines, field_growth)
|
289 |
|
290 |
-
st.table(RandomPortfolio.head(50))
|
291 |
-
|
292 |
RandomPortfolio['C1'] = pd.Series(list(RandomPortfolio['C1'].map(full_pos_player_dict['pos_dicts'][0])), dtype="string[pyarrow]")
|
293 |
RandomPortfolio['C2'] = pd.Series(list(RandomPortfolio['C2'].map(full_pos_player_dict['pos_dicts'][0])), dtype="string[pyarrow]")
|
294 |
RandomPortfolio['W1'] = pd.Series(list(RandomPortfolio['W1'].map(full_pos_player_dict['pos_dicts'][1])), dtype="string[pyarrow]")
|
@@ -303,8 +301,6 @@ def get_correlated_dk_portfolio_for_sim(Total_Sample_Size, sharp_split, field_gr
|
|
303 |
RandomPortfolio = RandomPortfolio[RandomPortfolio['plyr_count'] == 10].drop(columns=['plyr_list','plyr_count']).\
|
304 |
reset_index(drop=True)
|
305 |
|
306 |
-
st.table(RandomPortfolio.head(50))
|
307 |
-
|
308 |
RandomPortfolio['C1s'] = RandomPortfolio['C1'].map(maps_dict['Salary_map']).astype(np.int32)
|
309 |
RandomPortfolio['C2s'] = RandomPortfolio['C2'].map(maps_dict['Salary_map']).astype(np.int32)
|
310 |
RandomPortfolio['W1s'] = RandomPortfolio['W1'].map(maps_dict['Salary_map']).astype(np.int32)
|
@@ -1446,4 +1442,4 @@ del insert_port1, Contest_Size, sharp_split, Strength_var, scaling_var, Sort_fun
|
|
1446 |
del raw_baselines
|
1447 |
del freq_format
|
1448 |
|
1449 |
-
gc.collect()
|
|
|
287 |
|
288 |
RandomPortfolio, maps_dict, ranges_dict, full_pos_player_dict = create_random_portfolio(sizesplit, raw_baselines, field_growth)
|
289 |
|
|
|
|
|
290 |
RandomPortfolio['C1'] = pd.Series(list(RandomPortfolio['C1'].map(full_pos_player_dict['pos_dicts'][0])), dtype="string[pyarrow]")
|
291 |
RandomPortfolio['C2'] = pd.Series(list(RandomPortfolio['C2'].map(full_pos_player_dict['pos_dicts'][0])), dtype="string[pyarrow]")
|
292 |
RandomPortfolio['W1'] = pd.Series(list(RandomPortfolio['W1'].map(full_pos_player_dict['pos_dicts'][1])), dtype="string[pyarrow]")
|
|
|
301 |
RandomPortfolio = RandomPortfolio[RandomPortfolio['plyr_count'] == 10].drop(columns=['plyr_list','plyr_count']).\
|
302 |
reset_index(drop=True)
|
303 |
|
|
|
|
|
304 |
RandomPortfolio['C1s'] = RandomPortfolio['C1'].map(maps_dict['Salary_map']).astype(np.int32)
|
305 |
RandomPortfolio['C2s'] = RandomPortfolio['C2'].map(maps_dict['Salary_map']).astype(np.int32)
|
306 |
RandomPortfolio['W1s'] = RandomPortfolio['W1'].map(maps_dict['Salary_map']).astype(np.int32)
|
|
|
1442 |
del raw_baselines
|
1443 |
del freq_format
|
1444 |
|
1445 |
+
gc.collect()
|