Skip to content

Commit

Permalink
fix codes
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbuntemeyer committed Jul 29, 2024
1 parent a1a2c49 commit 566edf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyremo/codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ def _search_df(df, **kwargs):
cond = "(df['{0}'].isin({1}))".format(key, repr(item))
elif item is None:
cond = "(df['{0}'].isna())".format(key)
else:
cond = "(df['{0}'] == {1})".format(key, repr(item))
condition_list.append(cond)
conditions = " & ".join(condition_list)
return df[eval(conditions)]
Expand Down

0 comments on commit 566edf9

Please sign in to comment.