MCPcopy
hub / github.com/pandas-dev/pandas / get_jit_arguments

Function get_jit_arguments

pandas/core/util/numba_.py:32–56  ·  view source on GitHub ↗

Return arguments to pass to numba.JIT, falling back on pandas default JIT settings. Parameters ---------- engine_kwargs : dict, default None user passed keyword arguments for numba.JIT Returns ------- dict[str, bool] nopython, nogil, parallel Raise

(engine_kwargs: dict[str, bool] | None = None)

Source from the content-addressed store, hash-verified

30
31
32def get_jit_arguments(engine_kwargs: dict[str, bool] | None = None) -> dict[str, bool]:
33 """
34 Return arguments to pass to numba.JIT, falling back on pandas default JIT settings.
35
36 Parameters
37 ----------
38 engine_kwargs : dict, default None
39 user passed keyword arguments for numba.JIT
40
41 Returns
42 -------
43 dict[str, bool]
44 nopython, nogil, parallel
45
46 Raises
47 ------
48 NumbaUtilError
49 """
50 if engine_kwargs is None:
51 engine_kwargs = {}
52
53 nopython = engine_kwargs.get("nopython", True)
54 nogil = engine_kwargs.get("nogil", False)
55 parallel = engine_kwargs.get("parallel", False)
56 return {"nopython": nopython, "nogil": nogil, "parallel": parallel}
57
58
59def jit_user_function(func: Callable) -> Callable:

Callers 11

apply_rawMethod · 0.90
apply_with_numbaMethod · 0.90
apply_with_numbaMethod · 0.90
meanMethod · 0.90
sumMethod · 0.90
meanMethod · 0.90
_numba_applyMethod · 0.90
applyMethod · 0.90
_numba_agg_generalMethod · 0.90
_transform_with_numbaMethod · 0.90
_aggregate_with_numbaMethod · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected