File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -343,6 +343,7 @@ Performance improvements
343
343
- Performance improvement in :meth: `DataFrame.replace ` when provided a list of values to replace (:issue: `28099 `)
344
344
- Performance improvement in :meth: `DataFrame.select_dtypes ` by using vectorization instead of iterating over a loop (:issue: `28317 `)
345
345
- Performance improvement in :meth: `Categorical.searchsorted ` and :meth: `CategoricalIndex.searchsorted ` (:issue: `28795 `)
346
+ - Performance improvement when searching for a scalar in a :meth: `Categorical ` and the scalar is not found in the categories (:issue: ``)
346
347
347
348
.. _whatsnew_1000.bug_fixes:
348
349
Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ def f(self, other):
133
133
return ret
134
134
else :
135
135
if opname == "__eq__" :
136
- return np .repeat ( False , len (self ))
136
+ return np .zeros ( len (self ), dtype = bool )
137
137
elif opname == "__ne__" :
138
- return np .repeat ( True , len (self ))
138
+ return np .ones ( len (self ), dtype = bool )
139
139
else :
140
140
msg = (
141
141
"Cannot compare a Categorical for op {op} with a "
You can’t perform that action at this time.
0 commit comments