Skip to content

Commit

Permalink
DOC: Fix docstrings for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sunlight798 committed Dec 8, 2024
1 parent 1f3dce4 commit ec50b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,10 @@ class NumbaUtilError(Exception):
... )
>>> def incorrect_function(x):
... return sum(x) * 2.7
>>> df.("key").agg(incorrect_function, engine="numba")
>>> 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']groupby
must be ['values', 'index']
"""


Expand Down

0 comments on commit ec50b5a

Please sign in to comment.