Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,9 +80,6 @@ with button_col3:
|
|
| 80 |
st.button(claimscount, disabled=True)
|
| 81 |
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
# If the CSV has been processed, display the column selection UI
|
| 87 |
if st.session_state.get('select_columns', False):
|
| 88 |
st.write("Please choose the 'lob' column and the values to filter by:")
|
|
@@ -90,7 +87,7 @@ if st.session_state.get('select_columns', False):
|
|
| 90 |
# Determine columns with only string values and where no value is mostly numeric
|
| 91 |
string_columns = [
|
| 92 |
col for col in st.session_state['premiums_df'].columns
|
| 93 |
-
if
|
| 94 |
]
|
| 95 |
|
| 96 |
# Create two columns: one for the 'lob' column dropdown, one for the checkboxes
|
|
|
|
| 80 |
st.button(claimscount, disabled=True)
|
| 81 |
|
| 82 |
|
|
|
|
|
|
|
|
|
|
| 83 |
# If the CSV has been processed, display the column selection UI
|
| 84 |
if st.session_state.get('select_columns', False):
|
| 85 |
st.write("Please choose the 'lob' column and the values to filter by:")
|
|
|
|
| 87 |
# Determine columns with only string values and where no value is mostly numeric
|
| 88 |
string_columns = [
|
| 89 |
col for col in st.session_state['premiums_df'].columns
|
| 90 |
+
if not any(not isinstance(x, str) or is_mostly_numeric(x) for x in st.session_state['premiums_df'][col].dropna())
|
| 91 |
]
|
| 92 |
|
| 93 |
# Create two columns: one for the 'lob' column dropdown, one for the checkboxes
|