Update app.py
Browse files
app.py
CHANGED
|
@@ -25,6 +25,7 @@ freq_format = {'Exposure': '{:.2%}', 'Proj Own': '{:.2%}', 'Edge': '{:.2%}'}
|
|
| 25 |
dk_columns = ['CPT', 'TOP', 'JNG', 'MID', 'ADC', 'SUP', 'TEAM', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 26 |
fd_columns = ['CPT', 'TOP', 'JNG', 'MID', 'ADC', 'SUP', 'TEAM', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 27 |
|
|
|
|
| 28 |
@st.cache_data(ttl = 599)
|
| 29 |
def init_DK_seed_frames(league):
|
| 30 |
|
|
@@ -50,7 +51,7 @@ def init_baselines():
|
|
| 50 |
|
| 51 |
raw_display = pd.DataFrame(list(cursor))
|
| 52 |
|
| 53 |
-
raw_display['Player'] = raw_display['Player'].astype(str)
|
| 54 |
raw_display['STDev'] = raw_display['Median'] / 4
|
| 55 |
load_display = raw_display.drop_duplicates(subset=['Player'], keep='first')
|
| 56 |
|
|
|
|
| 25 |
dk_columns = ['CPT', 'TOP', 'JNG', 'MID', 'ADC', 'SUP', 'TEAM', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 26 |
fd_columns = ['CPT', 'TOP', 'JNG', 'MID', 'ADC', 'SUP', 'TEAM', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']
|
| 27 |
|
| 28 |
+
# Not sure why this wouldn't work
|
| 29 |
@st.cache_data(ttl = 599)
|
| 30 |
def init_DK_seed_frames(league):
|
| 31 |
|
|
|
|
| 51 |
|
| 52 |
raw_display = pd.DataFrame(list(cursor))
|
| 53 |
|
| 54 |
+
# raw_display['Player'] = raw_display['Player'].astype(str)
|
| 55 |
raw_display['STDev'] = raw_display['Median'] / 4
|
| 56 |
load_display = raw_display.drop_duplicates(subset=['Player'], keep='first')
|
| 57 |
|