James McCool commited on
Commit
1b92d06
·
1 Parent(s): 2c53a1d

Refactor app.py to reposition tab definitions for Scoring Percentages, Player ROO, and Optimals sections, improving code organization and ensuring proper tab functionality within the container.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,8 +116,6 @@ def convert_df(array):
116
  roo_data, sd_roo_data, scoring_percentages = init_baselines()
117
  hold_display = roo_data
118
 
119
- tab1, tab2, tab3 = st.tabs(["Scoring Percentages", "Player ROO", "Optimals"])
120
-
121
  with st.container():
122
  col1, col2 = st.columns([3, 3])
123
  with col1:
@@ -125,6 +123,8 @@ with st.container():
125
  with col2:
126
  site_var = st.selectbox("What site do you want to view?", ('Draftkings', 'Fanduel'), key='site_var')
127
 
 
 
128
  with tab1:
129
  st.header("Scoring Percentages")
130
  with st.expander("Info and Filters"):
 
116
  roo_data, sd_roo_data, scoring_percentages = init_baselines()
117
  hold_display = roo_data
118
 
 
 
119
  with st.container():
120
  col1, col2 = st.columns([3, 3])
121
  with col1:
 
123
  with col2:
124
  site_var = st.selectbox("What site do you want to view?", ('Draftkings', 'Fanduel'), key='site_var')
125
 
126
+ tab1, tab2, tab3 = st.tabs(["Scoring Percentages", "Player ROO", "Optimals"])
127
+
128
  with tab1:
129
  st.header("Scoring Percentages")
130
  with st.expander("Info and Filters"):