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

refactor(python): Deprecate name argument for repeat #8977

Merged
merged 5 commits into from
May 22, 2023

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented May 22, 2023

Related to #8972

Changes:

  • Remove name argument from ones and zeros (these weren't released yet). Add default name zeros/ones.
  • Deprecate name argument for repeat. Change default name to repeat.

@github-actions github-actions bot added python Related to Python Polars refactor Code improvements that do not change functionality labels May 22, 2023
Copy link
Collaborator

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, so name was added to zeros and ones in #8963, not yet released, so OK to remove right away
For repeat, you're adding a deprecationwarning
For both, changing the default name without warning (sounds fine tbh)
Also, you're refacatoring repeat so the dtype is done in rust within repeat_lazy, rathern then on the Python side

Looks good to me!

@stinodego
Copy link
Member Author

Thanks for the review! Time to clean up some tests.

@stinodego stinodego merged commit c6129e0 into pola-rs:main May 22, 2023
15 checks passed
@stinodego stinodego deleted the repeat-name branch May 25, 2023 05:25
c-peters pushed a commit to c-peters/polars that referenced this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Related to Python Polars refactor Code improvements that do not change functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants