James McCool
commited on
Commit
·
ab5ff8c
1
Parent(s):
4507308
Comment out calculations for highest owned teams and pitchers in app.py to streamline functionality and focus on essential features, while maintaining the option for future use.
Browse files
app.py
CHANGED
@@ -940,8 +940,8 @@ with tab2:
|
|
940 |
axis=1
|
941 |
)
|
942 |
st.session_state['working_frame'] = predict_dupes(st.session_state['working_frame'], st.session_state['map_dict'], site_var, type_var, Contest_Size, strength_var, sport_var)
|
943 |
-
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()
|
944 |
-
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()
|
945 |
if 'info_columns_dict' not in st.session_state:
|
946 |
st.session_state['info_columns_dict'] = {
|
947 |
'Dupes': st.session_state['working_frame']['Dupes'],
|
|
|
940 |
axis=1
|
941 |
)
|
942 |
st.session_state['working_frame'] = predict_dupes(st.session_state['working_frame'], st.session_state['map_dict'], site_var, type_var, Contest_Size, strength_var, sport_var)
|
943 |
+
# 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()
|
944 |
+
# 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()
|
945 |
if 'info_columns_dict' not in st.session_state:
|
946 |
st.session_state['info_columns_dict'] = {
|
947 |
'Dupes': st.session_state['working_frame']['Dupes'],
|