Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,11 +110,13 @@ with col2:
|
|
| 110 |
comb_DF[1].map(proj_dict),
|
| 111 |
comb_DF[2].map(proj_dict)])
|
| 112 |
|
| 113 |
-
comb_DF['
|
|
|
|
|
|
|
| 114 |
|
| 115 |
-
comb_DF['Value'] =
|
| 116 |
comb_DF[1].map(diff_dict),
|
| 117 |
-
comb_DF[2].map(diff_dict)])
|
| 118 |
|
| 119 |
elif stack_size == 4:
|
| 120 |
comb_DF['Team'] = comb_DF[0].map(team_dict)
|
|
@@ -124,12 +126,15 @@ with col2:
|
|
| 124 |
comb_DF[2].map(proj_dict),
|
| 125 |
comb_DF[3].map(proj_dict)])
|
| 126 |
|
| 127 |
-
comb_DF['
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
-
comb_DF['Value'] =
|
| 130 |
comb_DF[1].map(diff_dict),
|
| 131 |
comb_DF[2].map(diff_dict),
|
| 132 |
-
comb_DF[3].map(diff_dict)])
|
| 133 |
|
| 134 |
elif stack_size == 5:
|
| 135 |
comb_DF['Team'] = comb_DF[0].map(team_dict)
|
|
@@ -140,13 +145,17 @@ with col2:
|
|
| 140 |
comb_DF[3].map(proj_dict),
|
| 141 |
comb_DF[4].map(proj_dict)])
|
| 142 |
|
| 143 |
-
comb_DF['
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
|
| 145 |
-
comb_DF['Value'] =
|
| 146 |
comb_DF[1].map(diff_dict),
|
| 147 |
comb_DF[2].map(diff_dict),
|
| 148 |
comb_DF[3].map(diff_dict),
|
| 149 |
-
comb_DF[4].map(diff_dict)])
|
| 150 |
|
| 151 |
elif stack_size == 6:
|
| 152 |
comb_DF['Team'] = comb_DF[0].map(team_dict)
|
|
@@ -158,14 +167,19 @@ with col2:
|
|
| 158 |
comb_DF[4].map(proj_dict),
|
| 159 |
comb_DF[5].map(proj_dict)])
|
| 160 |
|
| 161 |
-
comb_DF['
|
| 162 |
-
|
| 163 |
-
comb_DF['
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
comb_DF[1].map(diff_dict),
|
| 165 |
comb_DF[2].map(diff_dict),
|
| 166 |
comb_DF[3].map(diff_dict),
|
| 167 |
comb_DF[4].map(diff_dict),
|
| 168 |
-
comb_DF[5].map(diff_dict)])
|
| 169 |
|
| 170 |
comb_DF = comb_DF.sort_values(by='Proj', ascending=False)
|
| 171 |
|
|
|
|
| 110 |
comb_DF[1].map(proj_dict),
|
| 111 |
comb_DF[2].map(proj_dict)])
|
| 112 |
|
| 113 |
+
comb_DF['ADP_1'] = comb_DF[0].map(adp_dict)
|
| 114 |
+
comb_DF['ADP_2'] = comb_DF[1].map(adp_dict)
|
| 115 |
+
comb_DF['ADP_3'] = comb_DF[2].map(adp_dict)
|
| 116 |
|
| 117 |
+
comb_DF['Value'] = ([comb_DF[0].map(diff_dict),
|
| 118 |
comb_DF[1].map(diff_dict),
|
| 119 |
+
comb_DF[2].map(diff_dict)]).mean()
|
| 120 |
|
| 121 |
elif stack_size == 4:
|
| 122 |
comb_DF['Team'] = comb_DF[0].map(team_dict)
|
|
|
|
| 126 |
comb_DF[2].map(proj_dict),
|
| 127 |
comb_DF[3].map(proj_dict)])
|
| 128 |
|
| 129 |
+
comb_DF['ADP_1'] = comb_DF[0].map(adp_dict)
|
| 130 |
+
comb_DF['ADP_2'] = comb_DF[1].map(adp_dict)
|
| 131 |
+
comb_DF['ADP_3'] = comb_DF[2].map(adp_dict)
|
| 132 |
+
comb_DF['ADP_4'] = comb_DF[3].map(adp_dict)
|
| 133 |
|
| 134 |
+
comb_DF['Value'] = ([comb_DF[0].map(diff_dict),
|
| 135 |
comb_DF[1].map(diff_dict),
|
| 136 |
comb_DF[2].map(diff_dict),
|
| 137 |
+
comb_DF[3].map(diff_dict)]).mean()
|
| 138 |
|
| 139 |
elif stack_size == 5:
|
| 140 |
comb_DF['Team'] = comb_DF[0].map(team_dict)
|
|
|
|
| 145 |
comb_DF[3].map(proj_dict),
|
| 146 |
comb_DF[4].map(proj_dict)])
|
| 147 |
|
| 148 |
+
comb_DF['ADP_1'] = comb_DF[0].map(adp_dict)
|
| 149 |
+
comb_DF['ADP_2'] = comb_DF[1].map(adp_dict)
|
| 150 |
+
comb_DF['ADP_3'] = comb_DF[2].map(adp_dict)
|
| 151 |
+
comb_DF['ADP_4'] = comb_DF[3].map(adp_dict)
|
| 152 |
+
comb_DF['ADP_5'] = comb_DF[4].map(adp_dict)
|
| 153 |
|
| 154 |
+
comb_DF['Value'] = ([comb_DF[0].map(diff_dict),
|
| 155 |
comb_DF[1].map(diff_dict),
|
| 156 |
comb_DF[2].map(diff_dict),
|
| 157 |
comb_DF[3].map(diff_dict),
|
| 158 |
+
comb_DF[4].map(diff_dict)]).mean()
|
| 159 |
|
| 160 |
elif stack_size == 6:
|
| 161 |
comb_DF['Team'] = comb_DF[0].map(team_dict)
|
|
|
|
| 167 |
comb_DF[4].map(proj_dict),
|
| 168 |
comb_DF[5].map(proj_dict)])
|
| 169 |
|
| 170 |
+
comb_DF['ADP_1'] = comb_DF[0].map(adp_dict)
|
| 171 |
+
comb_DF['ADP_2'] = comb_DF[1].map(adp_dict)
|
| 172 |
+
comb_DF['ADP_3'] = comb_DF[2].map(adp_dict)
|
| 173 |
+
comb_DF['ADP_4'] = comb_DF[3].map(adp_dict)
|
| 174 |
+
comb_DF['ADP_5'] = comb_DF[4].map(adp_dict)
|
| 175 |
+
comb_DF['ADP_6'] = comb_DF[5].map(adp_dict)
|
| 176 |
+
|
| 177 |
+
comb_DF['Value'] = ([comb_DF[0].map(diff_dict),
|
| 178 |
comb_DF[1].map(diff_dict),
|
| 179 |
comb_DF[2].map(diff_dict),
|
| 180 |
comb_DF[3].map(diff_dict),
|
| 181 |
comb_DF[4].map(diff_dict),
|
| 182 |
+
comb_DF[5].map(diff_dict)]).mean()
|
| 183 |
|
| 184 |
comb_DF = comb_DF.sort_values(by='Proj', ascending=False)
|
| 185 |
|