File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 17
17
from pandas .core .computation .common import _ensure_decoded
18
18
from pandas .core .computation .expr import BaseExprVisitor
19
19
from pandas .core .computation .ops import UndefinedVariableError , is_term
20
+ from pandas .core .construction import extract_array
20
21
21
22
from pandas .io .formats .printing import pprint_thing , pprint_thing_encoded
22
23
@@ -202,7 +203,7 @@ def stringify(value):
202
203
v = Timedelta (v , unit = "s" ).value
203
204
return TermValue (int (v ), v , kind )
204
205
elif meta == "category" :
205
- metadata = com . values_from_object (self .metadata )
206
+ metadata = extract_array (self .metadata , extract_numpy = True )
206
207
result = metadata .searchsorted (v , side = "left" )
207
208
208
209
# result returns 0 if v is first element or if v is not in metadata
You can’t perform that action at this time.
0 commit comments