19
19
makeCustomDataframe as mkdf )
20
20
21
21
import pandas .util .testing as tm
22
- from pandas .computation import _NUMEXPR_INSTALLED
22
+ from pandas .core . computation import _NUMEXPR_INSTALLED
23
23
24
24
from pandas .tests .frame .common import TestData
25
25
@@ -511,7 +511,7 @@ def test_query_syntax_error(self):
511
511
df .query ('i - +' , engine = engine , parser = parser )
512
512
513
513
def test_query_scope (self ):
514
- from pandas .computation .ops import UndefinedVariableError
514
+ from pandas .core . computation .ops import UndefinedVariableError
515
515
engine , parser = self .engine , self .parser
516
516
skip_if_no_pandas_parser (parser )
517
517
@@ -535,7 +535,7 @@ def test_query_scope(self):
535
535
df .query ('@a > b > c' , engine = engine , parser = parser )
536
536
537
537
def test_query_doesnt_pickup_local (self ):
538
- from pandas .computation .ops import UndefinedVariableError
538
+ from pandas .core . computation .ops import UndefinedVariableError
539
539
540
540
engine , parser = self .engine , self .parser
541
541
n = m = 10
@@ -546,7 +546,7 @@ def test_query_doesnt_pickup_local(self):
546
546
df .query ('sin > 5' , engine = engine , parser = parser )
547
547
548
548
def test_query_builtin (self ):
549
- from pandas .computation .engines import NumExprClobberingError
549
+ from pandas .core . computation .engines import NumExprClobberingError
550
550
engine , parser = self .engine , self .parser
551
551
552
552
n = m = 10
@@ -624,7 +624,7 @@ def test_nested_scope(self):
624
624
assert_frame_equal (result , expected )
625
625
626
626
def test_nested_raises_on_local_self_reference (self ):
627
- from pandas .computation .ops import UndefinedVariableError
627
+ from pandas .core . computation .ops import UndefinedVariableError
628
628
629
629
df = DataFrame (np .random .randn (5 , 3 ))
630
630
@@ -683,7 +683,7 @@ def test_at_inside_string(self):
683
683
assert_frame_equal (result , expected )
684
684
685
685
def test_query_undefined_local (self ):
686
- from pandas .computation .ops import UndefinedVariableError
686
+ from pandas .core . computation .ops import UndefinedVariableError
687
687
engine , parser = self .engine , self .parser
688
688
skip_if_no_pandas_parser (parser )
689
689
df = DataFrame (np .random .rand (10 , 2 ), columns = list ('ab' ))
@@ -803,7 +803,7 @@ def test_date_index_query_with_NaT_duplicates(self):
803
803
df .query ('index < 20130101 < dates3' , engine = engine , parser = parser )
804
804
805
805
def test_nested_scope (self ):
806
- from pandas .computation .ops import UndefinedVariableError
806
+ from pandas .core . computation .ops import UndefinedVariableError
807
807
engine = self .engine
808
808
parser = self .parser
809
809
# smoke test
0 commit comments