1212
1313from pandas .core .dtypes .common import is_list_like
1414
15- import pandas as pd
1615import pandas .core .common as com
1716from pandas .core .computation import expr , ops , scope as _scope
1817from pandas .core .computation .common import ensure_decoded
1918from pandas .core .computation .expr import BaseExprVisitor
2019from pandas .core .computation .ops import UndefinedVariableError , is_term
2120from pandas .core .construction import extract_array
21+ from pandas .core .indexes .base import Index
2222
2323from pandas .io .formats .printing import pprint_thing , pprint_thing_encoded
2424
@@ -250,7 +250,7 @@ def convert_values(self):
250250
251251
252252class FilterBinOp (BinOp ):
253- filter : Optional [Tuple [Any , Any , pd . Index ]] = None
253+ filter : Optional [Tuple [Any , Any , Index ]] = None
254254
255255 def __repr__ (self ) -> str :
256256 if self .filter is None :
@@ -285,7 +285,7 @@ def evaluate(self):
285285 if self .op in ["==" , "!=" ] and len (values ) > self ._max_selectors :
286286
287287 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 ))
289289
290290 return self
291291 return None
@@ -294,7 +294,7 @@ def evaluate(self):
294294 if self .op in ["==" , "!=" ]:
295295
296296 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 ))
298298
299299 else :
300300 raise TypeError (
0 commit comments