James McCool
commited on
Commit
·
520ddc7
1
Parent(s):
b82741e
printing a check frame
Browse files- app.py +2 -1
- global_func/predict_dupes.py +1 -1
app.py
CHANGED
|
@@ -1171,10 +1171,11 @@ if selected_tab == 'Manage Portfolio':
|
|
| 1171 |
st.session_state['working_frame']['median'] = st.session_state['working_frame']['median'].astype('float32')
|
| 1172 |
st.session_state['working_frame']['salary'] = st.session_state['working_frame']['salary'].astype('uint16')
|
| 1173 |
|
| 1174 |
-
st.session_state['base_frame'] = predict_dupes(st.session_state['working_frame'], st.session_state['map_dict'], site_var, type_var, Contest_Size, strength_var, sport_var, salary_max)
|
| 1175 |
st.session_state['working_frame'] = st.session_state['base_frame'].copy()
|
| 1176 |
# st.session_state['highest_owned_teams'] = st.session_state['projections_df'][~st.session_state['projections_df']['position'].isin(['P', 'SP'])].groupby('team')['ownership'].sum().sort_values(ascending=False).head(3).index.tolist()
|
| 1177 |
# st.session_state['highest_owned_pitchers'] = st.session_state['projections_df'][st.session_state['projections_df']['position'].isin(['P', 'SP'])]['player_names'].sort_values(by='ownership', ascending=False).head(3).tolist()
|
|
|
|
| 1178 |
|
| 1179 |
if 'trimming_dict_maxes' not in st.session_state:
|
| 1180 |
st.session_state['trimming_dict_maxes'] = {
|
|
|
|
| 1171 |
st.session_state['working_frame']['median'] = st.session_state['working_frame']['median'].astype('float32')
|
| 1172 |
st.session_state['working_frame']['salary'] = st.session_state['working_frame']['salary'].astype('uint16')
|
| 1173 |
|
| 1174 |
+
st.session_state['base_frame'], check_frame = predict_dupes(st.session_state['working_frame'], st.session_state['map_dict'], site_var, type_var, Contest_Size, strength_var, sport_var, salary_max)
|
| 1175 |
st.session_state['working_frame'] = st.session_state['base_frame'].copy()
|
| 1176 |
# st.session_state['highest_owned_teams'] = st.session_state['projections_df'][~st.session_state['projections_df']['position'].isin(['P', 'SP'])].groupby('team')['ownership'].sum().sort_values(ascending=False).head(3).index.tolist()
|
| 1177 |
# st.session_state['highest_owned_pitchers'] = st.session_state['projections_df'][st.session_state['projections_df']['position'].isin(['P', 'SP'])]['player_names'].sort_values(by='ownership', ascending=False).head(3).tolist()
|
| 1178 |
+
st.table(check_frame)
|
| 1179 |
|
| 1180 |
if 'trimming_dict_maxes' not in st.session_state:
|
| 1181 |
st.session_state['trimming_dict_maxes'] = {
|
global_func/predict_dupes.py
CHANGED
|
@@ -454,5 +454,5 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
| 454 |
portfolio[float32_columns] = portfolio[float32_columns].astype('float32')
|
| 455 |
except:
|
| 456 |
pass
|
| 457 |
-
|
| 458 |
return portfolio, check_portfolio
|
|
|
|
| 454 |
portfolio[float32_columns] = portfolio[float32_columns].astype('float32')
|
| 455 |
except:
|
| 456 |
pass
|
| 457 |
+
#printing a check frame
|
| 458 |
return portfolio, check_portfolio
|