()
| 379 | |
| 380 | @td.skip_if_no("numba") |
| 381 | def test_use_global_config(): |
| 382 | def f(x): |
| 383 | return np.mean(x) + 2 |
| 384 | |
| 385 | s = Series(range(10)) |
| 386 | with option_context("compute.use_numba", True): |
| 387 | result = s.rolling(2).apply(f, engine=None, raw=True) |
| 388 | expected = s.rolling(2).apply(f, engine="numba", raw=True) |
| 389 | tm.assert_series_equal(expected, result) |
| 390 | |
| 391 | |
| 392 | @td.skip_if_no("numba") |
nothing calls this directly
no test coverage detected