Spaces:
Running
Running
James McCool
commited on
Commit
·
b7fd8ba
1
Parent(s):
590da2e
Refactor dk_columns in app.py to remove 'W3' from the list, ensuring consistency in data handling. Update raw_display DataFrame to reflect this change, enhancing clarity in data processing for simulations.
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ db = init_conn()
|
|
| 17 |
|
| 18 |
percentages_format = {'Exposure': '{:.2%}'}
|
| 19 |
freq_format = {'Exposure': '{:.2%}', 'Proj Own': '{:.2%}', 'Edge': '{:.2%}'}
|
| 20 |
-
dk_columns = ['C1', 'C2', 'W1', 'W2', 'W3', 'D1', 'D2', '
|
| 21 |
fd_columns = ['C1', 'C2', 'W1', 'W2', 'D1', 'D2', 'FLEX1', 'FLEX2', 'G', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 22 |
|
| 23 |
@st.cache_data(ttl = 600)
|
|
@@ -27,7 +27,7 @@ def init_DK_seed_frames(sharp_split):
|
|
| 27 |
cursor = collection.find().limit(sharp_split)
|
| 28 |
|
| 29 |
raw_display = pd.DataFrame(list(cursor))
|
| 30 |
-
raw_display = raw_display[['C1', 'C2', 'W1', 'W2', 'W3', 'D1', 'D2', '
|
| 31 |
DK_seed = raw_display.to_numpy()
|
| 32 |
|
| 33 |
return DK_seed
|
|
|
|
| 17 |
|
| 18 |
percentages_format = {'Exposure': '{:.2%}'}
|
| 19 |
freq_format = {'Exposure': '{:.2%}', 'Proj Own': '{:.2%}', 'Edge': '{:.2%}'}
|
| 20 |
+
dk_columns = ['C1', 'C2', 'W1', 'W2', 'W3', 'D1', 'D2', 'G', 'FLEX', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 21 |
fd_columns = ['C1', 'C2', 'W1', 'W2', 'D1', 'D2', 'FLEX1', 'FLEX2', 'G', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 22 |
|
| 23 |
@st.cache_data(ttl = 600)
|
|
|
|
| 27 |
cursor = collection.find().limit(sharp_split)
|
| 28 |
|
| 29 |
raw_display = pd.DataFrame(list(cursor))
|
| 30 |
+
raw_display = raw_display[['C1', 'C2', 'W1', 'W2', 'W3', 'D1', 'D2', 'G', 'FLEX', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
| 31 |
DK_seed = raw_display.to_numpy()
|
| 32 |
|
| 33 |
return DK_seed
|