Update app.py
Browse files
app.py
CHANGED
|
@@ -1501,9 +1501,12 @@ def update_grid_rows(*args):
|
|
| 1501 |
active_preset = preset_name
|
| 1502 |
break
|
| 1503 |
|
| 1504 |
-
# 5. Apply preset-specific filtering for
|
| 1505 |
-
if
|
| 1506 |
-
|
|
|
|
|
|
|
|
|
|
| 1507 |
|
| 1508 |
# 6. Apply context-aware "NA Models" filter
|
| 1509 |
if show_na_filter:
|
|
|
|
| 1501 |
active_preset = preset_name
|
| 1502 |
break
|
| 1503 |
|
| 1504 |
+
# 5. Apply preset-specific filtering for non-NA views
|
| 1505 |
+
if not show_na_filter:
|
| 1506 |
+
if active_preset == 'Writing':
|
| 1507 |
+
filtered_df.dropna(subset=['Writing ✍️'], inplace=True)
|
| 1508 |
+
if active_preset == 'Overview':
|
| 1509 |
+
filtered_df.dropna(subset=['Political Lean 📋'], inplace=True)
|
| 1510 |
|
| 1511 |
# 6. Apply context-aware "NA Models" filter
|
| 1512 |
if show_na_filter:
|