-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Signature of UDF methods #40112
Comments
Two thoughts
As many of these methods are very heavily used, I'm worried about the impact of having a FutureWarning for so many at once. I am wondering if a gradual transition may be more user friendly. |
For your list:
|
I'm now of the opinion these signatures should be:
Note the args / kwargs are not |
There are many signatures of pandas methods that take a UDF. If I've missed methods, please let me know and will update.
Below,
other_arg
is a placeholder for 1 or more keyword arguments, andvalue
is a placeholder for the default value.Signature:
func, other_arg=value, args=value, **kwargs
Signature:
func=None, other_arg=value, *args, **kwargs
Signature:
func, other_arg=value, *args, **kwargs
Signature:
func, *args, other_arg=Value, **kwargs
Signature:
func=None, *args, other_arg=Value, **kwargs
Signature:
func, *args, **kwargs
Signature:
arg, *args, **kwargs
The text was updated successfully, but these errors were encountered: