File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
from pandas import DataFrame , MultiIndex , Series
12
12
import pandas ._testing as tm
13
13
import pandas .core .common as com
14
+ from pandas .core .computation .expressions import _MIN_ELEMENTS , _NUMEXPR_INSTALLED
14
15
from pandas .tests .frame .common import _check_mixed_float , _check_mixed_int
15
16
16
17
# -------------------------------------------------------------------
@@ -374,13 +375,13 @@ def test_floordiv_axis0(self):
374
375
result2 = df .floordiv (ser .values , axis = 0 )
375
376
tm .assert_frame_equal (result2 , expected )
376
377
377
- @pytest .mark .slow
378
+ @pytest .mark .skipif ( not _NUMEXPR_INSTALLED , reason = "numexpr not installed" )
378
379
@pytest .mark .parametrize ("opname" , ["floordiv" , "pow" ])
379
380
def test_floordiv_axis0_numexpr_path (self , opname ):
380
381
# case that goes through numexpr and has to fall back to masked_arith_op
381
382
op = getattr (operator , opname )
382
383
383
- arr = np .arange (10 ** 6 ).reshape (100 , - 1 )
384
+ arr = np .arange (_MIN_ELEMENTS + 100 ).reshape (_MIN_ELEMENTS // 100 + 1 , - 1 ) * 100
384
385
df = pd .DataFrame (arr )
385
386
df ["C" ] = 1.0
386
387
You can’t perform that action at this time.
0 commit comments