Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -164,7 +164,7 @@ with col2:
|
|
| 164 |
table_display = trend_table[trend_table['Proj'] >= proj_var1[0]]
|
| 165 |
table_display = table_display[table_display['Proj'] <= proj_var1[1]]
|
| 166 |
table_display = table_display[table_display['Team'].isin(team_var1)]
|
| 167 |
-
table_display = table_display[table_display['Position'].
|
| 168 |
table_display = table_display.sort_values(by='Adj Ceiling', ascending=False)
|
| 169 |
table_display = table_display.set_index('PLAYER_NAME')
|
| 170 |
st.dataframe(table_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
|
@@ -201,7 +201,7 @@ with col2:
|
|
| 201 |
table_display = proj_medians_table[proj_medians_table['Proj'] >= proj_var1[0]]
|
| 202 |
table_display = table_display[table_display['Proj'] <= proj_var1[1]]
|
| 203 |
table_display = table_display[table_display['Team'].isin(team_var1)]
|
| 204 |
-
table_display = table_display[table_display['Position'].
|
| 205 |
table_display = table_display.sort_values(by='Adj Ceiling', ascending=False)
|
| 206 |
table_display = table_display.set_index('PLAYER_NAME')
|
| 207 |
st.dataframe(table_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
|
|
|
| 164 |
table_display = trend_table[trend_table['Proj'] >= proj_var1[0]]
|
| 165 |
table_display = table_display[table_display['Proj'] <= proj_var1[1]]
|
| 166 |
table_display = table_display[table_display['Team'].isin(team_var1)]
|
| 167 |
+
table_display = table_display[table_display['Position'].str.contains('|'.join(pos_var1))]
|
| 168 |
table_display = table_display.sort_values(by='Adj Ceiling', ascending=False)
|
| 169 |
table_display = table_display.set_index('PLAYER_NAME')
|
| 170 |
st.dataframe(table_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
|
|
|
| 201 |
table_display = proj_medians_table[proj_medians_table['Proj'] >= proj_var1[0]]
|
| 202 |
table_display = table_display[table_display['Proj'] <= proj_var1[1]]
|
| 203 |
table_display = table_display[table_display['Team'].isin(team_var1)]
|
| 204 |
+
table_display = table_display[table_display['Position'].str.contains('|'.join(pos_var1))]
|
| 205 |
table_display = table_display.sort_values(by='Adj Ceiling', ascending=False)
|
| 206 |
table_display = table_display.set_index('PLAYER_NAME')
|
| 207 |
st.dataframe(table_display.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|