James McCool commited on
Commit
cc8e2a2
·
1 Parent(s): bea4631

Refactor app.py: Rename variables for clarity in seed frame functions. Updated 'DK_secondary' to 'DK_seed' and 'FD_secondary' to 'FD_seed' to better reflect their purpose. This change improves code readability and maintains consistency across the application.

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -41,9 +41,9 @@ def init_DK_secondary_seed_frames(load_size):
41
 
42
  raw_display = pd.DataFrame(list(cursor))
43
  raw_display = raw_display[['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'FLEX', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
44
- DK_secondary = raw_display.to_numpy()
45
 
46
- return DK_secondary
47
 
48
  @st.cache_data(ttl = 60)
49
  def init_FD_seed_frames(load_size):
@@ -65,9 +65,9 @@ def init_FD_secondary_seed_frames(load_size):
65
 
66
  raw_display = pd.DataFrame(list(cursor))
67
  raw_display = raw_display[['PG1', 'PG2', 'SG1', 'SG2', 'SF1', 'SF2', 'PF1', 'PF2', 'C1', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
68
- FD_secondary = raw_display.to_numpy()
69
 
70
- return FD_secondary
71
 
72
  @st.cache_resource(ttl = 60)
73
  def init_baselines():
 
41
 
42
  raw_display = pd.DataFrame(list(cursor))
43
  raw_display = raw_display[['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'FLEX', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
44
+ DK_seed = raw_display.to_numpy()
45
 
46
+ return DK_seed
47
 
48
  @st.cache_data(ttl = 60)
49
  def init_FD_seed_frames(load_size):
 
65
 
66
  raw_display = pd.DataFrame(list(cursor))
67
  raw_display = raw_display[['PG1', 'PG2', 'SG1', 'SG2', 'SF1', 'SF2', 'PF1', 'PF2', 'C1', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
68
+ FD_seed = raw_display.to_numpy()
69
 
70
+ return FD_seed
71
 
72
  @st.cache_resource(ttl = 60)
73
  def init_baselines():