Spaces:
Running
Running
James McCool
commited on
Commit
·
99cdacb
1
Parent(s):
52fbe00
Update player selection DataFrame in Handbuilder tab of app.py to remove duplicate entries based on 'Player' and 'Team', enhancing data integrity and improving user experience.
Browse files
app.py
CHANGED
@@ -822,7 +822,7 @@ with tab4:
|
|
822 |
dk_roo['Team'].isin(selected_teams)
|
823 |
][['Player', 'Position', 'Team', 'Salary', 'Median', 'Order', 'Hand', 'Own%']].sort_values(by='Order', ascending=True).copy()
|
824 |
else:
|
825 |
-
player_select_df = dk_roo[['Player', 'Position', 'Team', 'Salary', 'Median', 'Order', 'Hand', 'Own%']].copy()
|
826 |
|
827 |
# --- LINEUP STATE ---
|
828 |
if 'handbuilder_lineup' not in st.session_state:
|
|
|
822 |
dk_roo['Team'].isin(selected_teams)
|
823 |
][['Player', 'Position', 'Team', 'Salary', 'Median', 'Order', 'Hand', 'Own%']].sort_values(by='Order', ascending=True).copy()
|
824 |
else:
|
825 |
+
player_select_df = dk_roo[['Player', 'Position', 'Team', 'Salary', 'Median', 'Order', 'Hand', 'Own%']].drop_duplicates(subset=['Player', 'Team']).copy()
|
826 |
|
827 |
# --- LINEUP STATE ---
|
828 |
if 'handbuilder_lineup' not in st.session_state:
|