Spaces:
Running
Running
James McCool
commited on
Commit
·
be18b60
1
Parent(s):
239be9c
dropped dupes for QB stats
Browse files
app.py
CHANGED
@@ -147,6 +147,7 @@ with tab2:
|
|
147 |
elif split_var1 == 'All':
|
148 |
team_var1 = qb_stats.Team.values.tolist()
|
149 |
qb_stats = qb_stats[qb_stats['Team'].isin(team_var1)]
|
|
|
150 |
qb_stats_disp = qb_stats.set_index('Player')
|
151 |
qb_stats_disp = qb_stats_disp.sort_values(by='PPR', ascending=False)
|
152 |
st.dataframe(qb_stats_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height = 1000, use_container_width = True)
|
|
|
147 |
elif split_var1 == 'All':
|
148 |
team_var1 = qb_stats.Team.values.tolist()
|
149 |
qb_stats = qb_stats[qb_stats['Team'].isin(team_var1)]
|
150 |
+
qb_stats = qb_stats.drop_duplicates(subset='Player')
|
151 |
qb_stats_disp = qb_stats.set_index('Player')
|
152 |
qb_stats_disp = qb_stats_disp.sort_values(by='PPR', ascending=False)
|
153 |
st.dataframe(qb_stats_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), height = 1000, use_container_width = True)
|