Spaces:
Running
Running
James McCool
commited on
Commit
·
c40ca3c
1
Parent(s):
919f9f3
Update run_fantasy_corr and run_min_corr functions to accept season parameter and remove hardcoded season filter.
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
|
@@ -234,9 +234,9 @@ def seasonlong_build(data_sample):
|
|
| 234 |
return season_long_table
|
| 235 |
|
| 236 |
@st.cache_data(show_spinner=False)
|
| 237 |
-
def run_fantasy_corr(data_sample):
|
| 238 |
cor_testing = data_sample
|
| 239 |
-
cor_testing = cor_testing[cor_testing['Season'] == '22024']
|
| 240 |
date_list = cor_testing['Date'].unique().tolist()
|
| 241 |
player_list = cor_testing['Player'].unique().tolist()
|
| 242 |
corr_frame = pd.DataFrame()
|
|
@@ -253,7 +253,7 @@ def run_fantasy_corr(data_sample):
|
|
| 253 |
@st.cache_data(show_spinner=False)
|
| 254 |
def run_min_corr(data_sample):
|
| 255 |
cor_testing = data_sample
|
| 256 |
-
cor_testing = cor_testing[cor_testing['Season'] == '22024']
|
| 257 |
date_list = cor_testing['Date'].unique().tolist()
|
| 258 |
player_list = cor_testing['Player'].unique().tolist()
|
| 259 |
corr_frame = pd.DataFrame()
|
|
|
|
| 234 |
return season_long_table
|
| 235 |
|
| 236 |
@st.cache_data(show_spinner=False)
|
| 237 |
+
def run_fantasy_corr(data_sample, season):
|
| 238 |
cor_testing = data_sample
|
| 239 |
+
# cor_testing = cor_testing[cor_testing['Season'] == '22024']
|
| 240 |
date_list = cor_testing['Date'].unique().tolist()
|
| 241 |
player_list = cor_testing['Player'].unique().tolist()
|
| 242 |
corr_frame = pd.DataFrame()
|
|
|
|
| 253 |
@st.cache_data(show_spinner=False)
|
| 254 |
def run_min_corr(data_sample):
|
| 255 |
cor_testing = data_sample
|
| 256 |
+
# cor_testing = cor_testing[cor_testing['Season'] == '22024']
|
| 257 |
date_list = cor_testing['Date'].unique().tolist()
|
| 258 |
player_list = cor_testing['Player'].unique().tolist()
|
| 259 |
corr_frame = pd.DataFrame()
|