James McCool
commited on
Commit
·
b621a3b
1
Parent(s):
84a54cb
Add FLEX5 column to DK and FD seed frames in showdown functions for enhanced data completeness
Browse files
src/sim_func_hold/showdown_functions.py
CHANGED
|
@@ -16,7 +16,7 @@ def init_DK_SD_seed_frames(slate, split):
|
|
| 16 |
cursor = collection.find().limit(split)
|
| 17 |
|
| 18 |
raw_display = pd.DataFrame(list(cursor))
|
| 19 |
-
raw_display = raw_display[['CPT', 'FLEX1', 'FLEX2', 'FLEX3', 'FLEX4', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
| 20 |
DK_seed = raw_display.to_numpy()
|
| 21 |
|
| 22 |
return DK_seed
|
|
@@ -33,7 +33,7 @@ def init_FD_SD_seed_frames(slate, split):
|
|
| 33 |
cursor = collection.find().limit(split)
|
| 34 |
|
| 35 |
raw_display = pd.DataFrame(list(cursor))
|
| 36 |
-
raw_display = raw_display[['CPT', 'FLEX1', 'FLEX2', 'FLEX3', 'FLEX4', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
| 37 |
FD_seed = raw_display.to_numpy()
|
| 38 |
|
| 39 |
return FD_seed
|
|
|
|
| 16 |
cursor = collection.find().limit(split)
|
| 17 |
|
| 18 |
raw_display = pd.DataFrame(list(cursor))
|
| 19 |
+
raw_display = raw_display[['CPT', 'FLEX1', 'FLEX2', 'FLEX3', 'FLEX4', 'FLEX5', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
| 20 |
DK_seed = raw_display.to_numpy()
|
| 21 |
|
| 22 |
return DK_seed
|
|
|
|
| 33 |
cursor = collection.find().limit(split)
|
| 34 |
|
| 35 |
raw_display = pd.DataFrame(list(cursor))
|
| 36 |
+
raw_display = raw_display[['CPT', 'FLEX1', 'FLEX2', 'FLEX3', 'FLEX4', 'FLEX5', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
| 37 |
FD_seed = raw_display.to_numpy()
|
| 38 |
|
| 39 |
return FD_seed
|
src/streamlit_app.py
CHANGED
|
@@ -17,6 +17,8 @@ percentages_format = {'Exposure': '{:.2%}'}
|
|
| 17 |
freq_format = {'Exposure': '{:.2%}', 'Proj Own': '{:.2%}', 'Edge': '{:.2%}'}
|
| 18 |
dk_columns = ['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 19 |
fd_columns = ['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
|
|
|
|
|
|
| 20 |
|
| 21 |
st.markdown("""
|
| 22 |
<style>
|
|
|
|
| 17 |
freq_format = {'Exposure': '{:.2%}', 'Proj Own': '{:.2%}', 'Edge': '{:.2%}'}
|
| 18 |
dk_columns = ['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 19 |
fd_columns = ['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 20 |
+
dk_sd_columns = ['CPT', 'FLEX1', 'FLEX2', 'FLEX3', 'FLEX4', 'FLEX5', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 21 |
+
fd_sd_columns = ['CPT', 'FLEX1', 'FLEX2', 'FLEX3', 'FLEX4', 'FLEX5', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 22 |
|
| 23 |
st.markdown("""
|
| 24 |
<style>
|