12
12
13
13
from pandas .core .dtypes .common import is_list_like
14
14
15
- import pandas as pd
16
15
import pandas .core .common as com
17
16
from pandas .core .computation import expr , ops , scope as _scope
18
17
from pandas .core .computation .common import ensure_decoded
19
18
from pandas .core .computation .expr import BaseExprVisitor
20
19
from pandas .core .computation .ops import UndefinedVariableError , is_term
21
20
from pandas .core .construction import extract_array
21
+ from pandas .core .indexes .base import Index
22
22
23
23
from pandas .io .formats .printing import pprint_thing , pprint_thing_encoded
24
24
@@ -250,7 +250,7 @@ def convert_values(self):
250
250
251
251
252
252
class FilterBinOp (BinOp ):
253
- filter : Optional [Tuple [Any , Any , pd . Index ]] = None
253
+ filter : Optional [Tuple [Any , Any , Index ]] = None
254
254
255
255
def __repr__ (self ) -> str :
256
256
if self .filter is None :
@@ -285,7 +285,7 @@ def evaluate(self):
285
285
if self .op in ["==" , "!=" ] and len (values ) > self ._max_selectors :
286
286
287
287
filter_op = self .generate_filter_op ()
288
- self .filter = (self .lhs , filter_op , pd . Index (values ))
288
+ self .filter = (self .lhs , filter_op , Index (values ))
289
289
290
290
return self
291
291
return None
@@ -294,7 +294,7 @@ def evaluate(self):
294
294
if self .op in ["==" , "!=" ]:
295
295
296
296
filter_op = self .generate_filter_op ()
297
- self .filter = (self .lhs , filter_op , pd . Index (values ))
297
+ self .filter = (self .lhs , filter_op , Index (values ))
298
298
299
299
else :
300
300
raise TypeError (
0 commit comments