Skip to content

Commit

Permalink
BOT: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and Zeroto521 committed Oct 24, 2022
1 parent a917066 commit e26f84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtoolkit/accessor/index/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def filter(

if items:
choice = lambda x: (x not in items) if complement else (x in items)
return index.reindex((i in index for i in items if choice(i)))[0]
return index.reindex(i in index for i in items if choice(i))[0]
elif like:
condition = index.map(lambda x: like in ensure_str(x))
elif regex:
Expand Down

0 comments on commit e26f84a

Please sign in to comment.