Spaces:
Running
Running
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
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 |
-
|
45 |
|
46 |
-
return
|
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 |
-
|
69 |
|
70 |
-
return
|
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():
|