pandas.errors.NumbaUtilError — pandas 3.0.0.dev0+2098.g9c5b9ee823 documentation (original) (raw)
exception pandas.errors.NumbaUtilError[source]#
Error raised for unsupported Numba engine routines.
See also
DataFrame.groupby
Group DataFrame using a mapper or by a Series of columns.
Series.groupby
Group Series using a mapper or by a Series of columns.
DataFrame.agg
Aggregate using one or more operations over the specified axis.
Series.agg
Aggregate using one or more operations over the specified axis.
Examples
df = pd.DataFrame( ... {"key": ["a", "a", "b", "b"], "data": [1, 2, 3, 4]}, columns=["key", "data"] ... ) def incorrect_function(x): ... return sum(x) * 2.7 df.groupby("key").agg(incorrect_function, engine="numba") Traceback (most recent call last): NumbaUtilError: The first 2 arguments to incorrect_function must be ['values', 'index']