@@ -1641,9 +1641,8 @@ def eval(self, *args, **kwargs):
1641
1641
def test_unary_functions (self ):
1642
1642
df = DataFrame ({'a' : np .random .randn (10 )})
1643
1643
a = df .a
1644
- unary_functions = [x for x in self .unary_fns
1645
- if x not in ('floor' , 'ceil' )]
1646
- for fn in unary_functions :
1644
+
1645
+ for fn in self .unary_fns :
1647
1646
expr = "{0}(a)" .format (fn )
1648
1647
got = self .eval (expr )
1649
1648
with np .errstate (all = 'ignore' ):
@@ -1657,16 +1656,6 @@ def test_floor_and_ceil_functions_raise_error(self, ne_lt_2_6_9):
1657
1656
expr = "{0}(100)" .format (fn )
1658
1657
self .eval (expr )
1659
1658
1660
- def test_floor_and_ceil_functions_evaluate_expressions (self , ne_gt_2_6_9 ):
1661
- df = DataFrame ({'a' : np .random .randn (10 )})
1662
- a = df .a
1663
- for fn in ('floor' , 'ceil' ):
1664
- expr = "{0}(a)" .format (fn )
1665
- got = self .eval (expr )
1666
- with np .errstate (all = 'ignore' ):
1667
- expect = getattr (np , fn )(a )
1668
- tm .assert_series_equal (got , expect , check_names = False )
1669
-
1670
1659
def test_binary_functions (self ):
1671
1660
df = DataFrame ({'a' : np .random .randn (10 ),
1672
1661
'b' : np .random .randn (10 )})
0 commit comments