DontPlanToEnd
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -43,10 +43,10 @@ def update_table(df: pd.DataFrame, query: str, param_ranges: dict) -> pd.DataFra
|
|
43 |
elif param_range == '~70+':
|
44 |
conditions.append((filtered_df['Params'] >= 60))
|
45 |
|
46 |
-
if
|
47 |
-
filtered_df = filtered_df[pd.concat(conditions, axis=1).any(axis=1) | filtered_df['Params'].isna()]
|
48 |
-
else:
|
49 |
filtered_df = filtered_df[pd.concat(conditions, axis=1).any(axis=1)]
|
|
|
|
|
50 |
else:
|
51 |
filtered_df = filtered_df[filtered_df['Params'].isna()]
|
52 |
|
|
|
43 |
elif param_range == '~70+':
|
44 |
conditions.append((filtered_df['Params'] >= 60))
|
45 |
|
46 |
+
if conditions:
|
|
|
|
|
47 |
filtered_df = filtered_df[pd.concat(conditions, axis=1).any(axis=1)]
|
48 |
+
else:
|
49 |
+
filtered_df = filtered_df[filtered_df['Params'].notna()]
|
50 |
else:
|
51 |
filtered_df = filtered_df[filtered_df['Params'].isna()]
|
52 |
|