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] committed Oct 22, 2022
1 parent 70edd88 commit 0385fe3
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 0385fe3

Please sign in to comment.