Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,7 +131,7 @@ with tab1:
|
|
| 131 |
st.session_state.data_export_freq = pd.DataFrame(np.column_stack(np.unique(st.session_state.data_export.iloc[:,0:8].values, return_counts=True)),
|
| 132 |
columns=['Player','Freq']).sort_values('Freq', ascending=False).reset_index(drop=True)
|
| 133 |
st.session_state.data_export_freq['Freq'] = st.session_state.data_export_freq['Freq'].astype(int)
|
| 134 |
-
st.session_state.data_export_freq['Exposure'] = st.session_state.data_export_freq['Freq']/(len(
|
| 135 |
|
| 136 |
if 'data_export' in st.session_state:
|
| 137 |
st.download_button(
|
|
|
|
| 131 |
st.session_state.data_export_freq = pd.DataFrame(np.column_stack(np.unique(st.session_state.data_export.iloc[:,0:8].values, return_counts=True)),
|
| 132 |
columns=['Player','Freq']).sort_values('Freq', ascending=False).reset_index(drop=True)
|
| 133 |
st.session_state.data_export_freq['Freq'] = st.session_state.data_export_freq['Freq'].astype(int)
|
| 134 |
+
st.session_state.data_export_freq['Exposure'] = st.session_state.data_export_freq['Freq']/(len(FD_seed_parse['Team']))
|
| 135 |
|
| 136 |
if 'data_export' in st.session_state:
|
| 137 |
st.download_button(
|