James McCool commited on
Commit
a085b3b
·
1 Parent(s): 6900faf

Update app.py to include 'FLEX1' in lineup dataframes for both DK and FD lineups, ensuring consistency in displayed player positions. Adjust dataframe display logic for improved clarity in the user interface.

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -88,7 +88,7 @@ def init_DK_lineups():
88
  cursor = collection.find().limit(10000)
89
 
90
  raw_display = pd.DataFrame(list(cursor))
91
- raw_display = raw_display[['CPT', 'FLEX2', 'FLEX3', 'FLEX4', 'FLEX5', 'FLEX6', 'salary', 'proj', 'Own']]
92
  DK_seed = raw_display.to_numpy()
93
 
94
  return DK_seed
@@ -100,7 +100,7 @@ def init_FD_lineups():
100
  cursor = collection.find().limit(10000)
101
 
102
  raw_display = pd.DataFrame(list(cursor))
103
- raw_display = raw_display[['CPT', 'FLEX2', 'FLEX3', 'FLEX4', 'FLEX5', 'salary', 'proj', 'Own']]
104
  FD_seed = raw_display.to_numpy()
105
 
106
  return FD_seed
@@ -134,7 +134,7 @@ with tab2:
134
  elif site_var == "Fanduel":
135
  display_data = sd_roo_data[sd_roo_data['site'] == 'Fanduel']
136
  display_data = display_data[display_data['slate'] == 'FD SD1']
137
- st.dataframe(display_data)
138
 
139
  with tab3:
140
  with st.expander("Info and Filters"):
 
88
  cursor = collection.find().limit(10000)
89
 
90
  raw_display = pd.DataFrame(list(cursor))
91
+ raw_display = raw_display[['CPT', 'FLEX1', 'FLEX2', 'FLEX3', 'FLEX4', 'FLEX5', 'salary', 'proj', 'Own']]
92
  DK_seed = raw_display.to_numpy()
93
 
94
  return DK_seed
 
100
  cursor = collection.find().limit(10000)
101
 
102
  raw_display = pd.DataFrame(list(cursor))
103
+ raw_display = raw_display[['CPT', 'FLEX1', 'FLEX2', 'FLEX3', 'FLEX4', 'salary', 'proj', 'Own']]
104
  FD_seed = raw_display.to_numpy()
105
 
106
  return FD_seed
 
134
  elif site_var == "Fanduel":
135
  display_data = sd_roo_data[sd_roo_data['site'] == 'Fanduel']
136
  display_data = display_data[display_data['slate'] == 'FD SD1']
137
+ st.dataframe(display_data)
138
 
139
  with tab3:
140
  with st.expander("Info and Filters"):