Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -912,26 +912,26 @@ with tab2:
|
|
| 912 |
|
| 913 |
with col2:
|
| 914 |
with st.container():
|
| 915 |
-
if 'Sim_Winner_Display' not in st.session_state:
|
| 916 |
-
|
| 917 |
-
if 'Sim_Winner_Frame' not in st.session_state:
|
| 918 |
-
|
| 919 |
-
if 'Sim_Winner_Export' not in st.session_state:
|
| 920 |
-
|
| 921 |
-
if 'player_freq' not in st.session_state:
|
| 922 |
-
|
| 923 |
-
if 'qb_freq' not in st.session_state:
|
| 924 |
-
|
| 925 |
-
if 'rb_freq' not in st.session_state:
|
| 926 |
-
|
| 927 |
-
if 'wr_freq' not in st.session_state:
|
| 928 |
-
|
| 929 |
-
if 'te_freq' not in st.session_state:
|
| 930 |
-
|
| 931 |
-
if 'flex_freq' not in st.session_state:
|
| 932 |
-
|
| 933 |
-
if 'dst_freq' not in st.session_state:
|
| 934 |
-
|
| 935 |
if st.button("Simulate Contest"):
|
| 936 |
try:
|
| 937 |
del dst_freq
|
|
@@ -947,6 +947,8 @@ with tab2:
|
|
| 947 |
pass
|
| 948 |
with st.container():
|
| 949 |
st.write('Contest Simulation Starting')
|
|
|
|
|
|
|
| 950 |
seed_depth1 = 10
|
| 951 |
Total_Runs = 1000000
|
| 952 |
if Contest_Size <= 1000:
|
|
|
|
| 912 |
|
| 913 |
with col2:
|
| 914 |
with st.container():
|
| 915 |
+
# if 'Sim_Winner_Display' not in st.session_state:
|
| 916 |
+
# st.session_state.Sim_Winner_Display = pd.DataFrame(columns=['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'User/Field', 'Salary', 'Projection', 'Own', 'Fantasy', 'GPP_Proj'])
|
| 917 |
+
# if 'Sim_Winner_Frame' not in st.session_state:
|
| 918 |
+
# st.session_state.Sim_Winner_Frame = pd.DataFrame(columns=['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'User/Field', 'Salary', 'Projection', 'Own', 'Fantasy', 'GPP_Proj'])
|
| 919 |
+
# if 'Sim_Winner_Export' not in st.session_state:
|
| 920 |
+
# st.session_state.Sim_Winner_Export = pd.DataFrame(columns=['QB', 'RB1', 'RB2', 'WR1', 'WR2', 'WR3', 'TE', 'FLEX', 'DST', 'User/Field', 'Salary', 'Projection', 'Own', 'Fantasy', 'GPP_Proj'])
|
| 921 |
+
# if 'player_freq' not in st.session_state:
|
| 922 |
+
# st.session_state.player_freq = pd.DataFrame(columns=['Player', 'Position', 'Team', 'Salary', 'Proj Own', 'Exposure', 'Edge'])
|
| 923 |
+
# if 'qb_freq' not in st.session_state:
|
| 924 |
+
# st.session_state.qb_freq = pd.DataFrame(columns=['Player', 'Position', 'Team', 'Salary', 'Proj Own', 'Exposure', 'Edge'])
|
| 925 |
+
# if 'rb_freq' not in st.session_state:
|
| 926 |
+
# st.session_state.rb_freq = pd.DataFrame(columns=['Player', 'Position', 'Team', 'Salary', 'Proj Own', 'Exposure', 'Edge'])
|
| 927 |
+
# if 'wr_freq' not in st.session_state:
|
| 928 |
+
# st.session_state.wr_freq = pd.DataFrame(columns=['Player', 'Position', 'Team', 'Salary', 'Proj Own', 'Exposure', 'Edge'])
|
| 929 |
+
# if 'te_freq' not in st.session_state:
|
| 930 |
+
# st.session_state.te_freq = pd.DataFrame(columns=['Player', 'Position', 'Team', 'Salary', 'Proj Own', 'Exposure', 'Edge'])
|
| 931 |
+
# if 'flex_freq' not in st.session_state:
|
| 932 |
+
# st.session_state.flex_freq = pd.DataFrame(columns=['Player', 'Position', 'Team', 'Salary', 'Proj Own', 'Exposure', 'Edge'])
|
| 933 |
+
# if 'dst_freq' not in st.session_state:
|
| 934 |
+
# st.session_state.dst_freq = pd.DataFrame(columns=['Player', 'Position', 'Team', 'Salary', 'Proj Own', 'Exposure', 'Edge'])
|
| 935 |
if st.button("Simulate Contest"):
|
| 936 |
try:
|
| 937 |
del dst_freq
|
|
|
|
| 947 |
pass
|
| 948 |
with st.container():
|
| 949 |
st.write('Contest Simulation Starting')
|
| 950 |
+
for key in st.session_state.keys():
|
| 951 |
+
del st.session_state[key]
|
| 952 |
seed_depth1 = 10
|
| 953 |
Total_Runs = 1000000
|
| 954 |
if Contest_Size <= 1000:
|