Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1035,7 +1035,7 @@ with tab2:
|
|
| 1035 |
# Conditional Replacement
|
| 1036 |
columns_to_replace = ['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'FLEX', 'S_FLEX']
|
| 1037 |
|
| 1038 |
-
player_freq = pd.DataFrame(np.column_stack(np.unique(Sim_Winner_Frame.iloc[:,0
|
| 1039 |
columns=['Player','Freq']).sort_values('Freq', ascending=False).reset_index(drop=True)
|
| 1040 |
player_freq['Freq'] = player_freq['Freq'].astype(int)
|
| 1041 |
player_freq['Position'] = player_freq['Player'].map(maps_dict['Pos_map'])
|
|
@@ -1091,7 +1091,7 @@ with tab2:
|
|
| 1091 |
|
| 1092 |
wr_freq = wr_freq[['Player', 'Team', 'Position', 'Salary', 'Proj Own', 'Exposure', 'Edge']]
|
| 1093 |
|
| 1094 |
-
flex_freq = pd.DataFrame(np.column_stack(np.unique(Sim_Winner_Frame.iloc[:,
|
| 1095 |
columns=['Player','Freq']).sort_values('Freq', ascending=False).reset_index(drop=True)
|
| 1096 |
flex_freq['Freq'] = flex_freq['Freq'].astype(int)
|
| 1097 |
flex_freq['Position'] = flex_freq['Player'].map(maps_dict['Pos_map'])
|
|
@@ -1105,7 +1105,7 @@ with tab2:
|
|
| 1105 |
|
| 1106 |
flex_freq = flex_freq[['Player', 'Team', 'Position', 'Salary', 'Proj Own', 'Exposure', 'Edge']]
|
| 1107 |
|
| 1108 |
-
dst_freq = pd.DataFrame(np.column_stack(np.unique(Sim_Winner_Frame.iloc[:,
|
| 1109 |
columns=['Player','Freq']).sort_values('Freq', ascending=False).reset_index(drop=True)
|
| 1110 |
dst_freq['Freq'] = dst_freq['Freq'].astype(int)
|
| 1111 |
dst_freq['Position'] = dst_freq['Player'].map(maps_dict['Pos_map'])
|
|
|
|
| 1035 |
# Conditional Replacement
|
| 1036 |
columns_to_replace = ['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'FLEX', 'S_FLEX']
|
| 1037 |
|
| 1038 |
+
player_freq = pd.DataFrame(np.column_stack(np.unique(Sim_Winner_Frame.iloc[:,[0, 1, 2, 3, 4, 5, 6, 7]].values, return_counts=True)),
|
| 1039 |
columns=['Player','Freq']).sort_values('Freq', ascending=False).reset_index(drop=True)
|
| 1040 |
player_freq['Freq'] = player_freq['Freq'].astype(int)
|
| 1041 |
player_freq['Position'] = player_freq['Player'].map(maps_dict['Pos_map'])
|
|
|
|
| 1091 |
|
| 1092 |
wr_freq = wr_freq[['Player', 'Team', 'Position', 'Salary', 'Proj Own', 'Exposure', 'Edge']]
|
| 1093 |
|
| 1094 |
+
flex_freq = pd.DataFrame(np.column_stack(np.unique(Sim_Winner_Frame.iloc[:,[6]].values, return_counts=True)),
|
| 1095 |
columns=['Player','Freq']).sort_values('Freq', ascending=False).reset_index(drop=True)
|
| 1096 |
flex_freq['Freq'] = flex_freq['Freq'].astype(int)
|
| 1097 |
flex_freq['Position'] = flex_freq['Player'].map(maps_dict['Pos_map'])
|
|
|
|
| 1105 |
|
| 1106 |
flex_freq = flex_freq[['Player', 'Team', 'Position', 'Salary', 'Proj Own', 'Exposure', 'Edge']]
|
| 1107 |
|
| 1108 |
+
dst_freq = pd.DataFrame(np.column_stack(np.unique(Sim_Winner_Frame.iloc[:,[7]].values, return_counts=True)),
|
| 1109 |
columns=['Player','Freq']).sort_values('Freq', ascending=False).reset_index(drop=True)
|
| 1110 |
dst_freq['Freq'] = dst_freq['Freq'].astype(int)
|
| 1111 |
dst_freq['Position'] = dst_freq['Player'].map(maps_dict['Pos_map'])
|