Spaces:
Running
Running
fix filter
Browse files- components/query.py +1 -1
components/query.py
CHANGED
|
@@ -118,7 +118,7 @@ def get_sample_data(df, pred_taxon, rank):
|
|
| 118 |
return None, np.nan, "", False
|
| 119 |
|
| 120 |
# First, try to find entries with empty lower ranks
|
| 121 |
-
exact_df = df
|
| 122 |
for lower_rank in RANKS[rank + 1:]:
|
| 123 |
exact_df = exact_df.filter((pl.col(lower_rank).is_null()) | (pl.col(lower_rank) == ""))
|
| 124 |
|
|
|
|
| 118 |
return None, np.nan, "", False
|
| 119 |
|
| 120 |
# First, try to find entries with empty lower ranks
|
| 121 |
+
exact_df = df
|
| 122 |
for lower_rank in RANKS[rank + 1:]:
|
| 123 |
exact_df = exact_df.filter((pl.col(lower_rank).is_null()) | (pl.col(lower_rank) == ""))
|
| 124 |
|