Skip to content
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

chore(python): Rename args f/func to function #7032

Merged
merged 1 commit into from Feb 20, 2023

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Feb 19, 2023

There was no consensus on arguments that take function inputs: I saw f, fn, and func. I went with function to standardize all. These are not keyword-only arguments, so brevity doesn't count for much.

Note that pipe still has func as argument, as I could not find a way to deprecate it nicely (decorator doesn't work due to that function taking *args and **kwargs). So I think we'll just have to hard break that one.

@github-actions github-actions bot added chore Maintenance work that does not impact the user python Related to Python Polars labels Feb 19, 2023
@s-banach
Copy link
Contributor

DataFrame.pivot(aggregate_fn) comes to mind as something with an “fn”. I’m not sure if you’re also looking for cases like that.

@stinodego
Copy link
Member Author

stinodego commented Feb 20, 2023

Ah yeah I forgot that one. Not 100% sure what that should be named. I'll do that in a separate PR probably. It's a bit different as it doesn't take function input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance work that does not impact the user python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants