From 0385fe31d48a7be0686809dec0b7411ffd1f44d5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 22 Oct 2022 02:20:12 +0000 Subject: [PATCH] BOT: auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- dtoolkit/accessor/index/filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtoolkit/accessor/index/filter.py b/dtoolkit/accessor/index/filter.py index e9cd2ee0b..f2084d434 100644 --- a/dtoolkit/accessor/index/filter.py +++ b/dtoolkit/accessor/index/filter.py @@ -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: