Skip to content

Commit

Permalink
pandas-dev#34131 review taken into account
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierLuG committed Jun 14, 2020
1 parent 2ca3041 commit 5ff6b2d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pandas/tests/frame/test_arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from pandas.core.computation.expressions import (
_MIN_ELEMENTS,
_NUMEXPR_INSTALLED,
_USE_NUMEXPR,
)
from pandas.tests.frame.common import _check_mixed_float, _check_mixed_int

Expand Down Expand Up @@ -379,17 +378,14 @@ def test_floordiv_axis0(self):
result2 = df.floordiv(ser.values, axis=0)
tm.assert_frame_equal(result2, expected)

@pytest.mark.skipif(not _NUMEXPR_INSTALLED, reason="numexpr not installed")
@pytest.mark.parametrize("opname", ["floordiv", "pow"])
def test_floordiv_axis0_numexpr_path(self, opname):
# case that goes through numexpr and has to fall back to masked_arith_op
op = getattr(operator, opname)

arr = np.arange(_MIN_ELEMENTS + 100).reshape(_MIN_ELEMENTS // 100 + 1, -1) * 100
df = pd.DataFrame(arr)
if _NUMEXPR_INSTALLED:
assert _USE_NUMEXPR
else:
return
df["C"] = 1.0

ser = df[0]
Expand Down

0 comments on commit 5ff6b2d

Please sign in to comment.