-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
PERF: Fixes performance regression in DataFrame[bool_indexer] (#33924) #34199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
c94b45e
4ba7472
509f74a
0ab450b
54c7304
c7de90b
0e75426
6d72a34
5ba54a6
2766270
cb1312c
202f409
74cb449
6440281
915dec8
6925c29
91176ca
0734a87
2def933
70a266c
8bed9b5
cfa6b9e
013495d
8707be4
f748b78
5b9fe28
e0a34f8
2ce27c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| from pandas.util._decorators import doc | ||
|
|
||
| from pandas.core.dtypes.common import ( | ||
| is_array_like, | ||
| is_hashable, | ||
| is_integer, | ||
| is_iterator, | ||
|
|
@@ -22,6 +23,7 @@ | |
| from pandas.core.dtypes.missing import _infer_fill_value, isna | ||
|
|
||
| import pandas.core.common as com | ||
| from pandas.core.construction import array as pd_array | ||
| from pandas.core.indexers import ( | ||
| check_array_indexer, | ||
| is_list_like_indexer, | ||
|
|
@@ -2167,8 +2169,10 @@ def check_bool_indexer(index: Index, key) -> np.ndarray: | |
| result = np.asarray(result, dtype=bool) | ||
| result = check_array_indexer(index, result) | ||
| else: | ||
| if not is_array_like(result): | ||
| # GH 33924 | ||
| result = pd_array(result, dtype=bool) | ||
|
||
| result = check_array_indexer(index, result) | ||
|
|
||
| return result | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.