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

depr(python): Rename series_equal/frame_equal to equals #12618

Merged
merged 4 commits into from
Nov 23, 2023
Merged

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Nov 22, 2023

Closes #12000

I left the Rust side alone for now as that basically hits the entire test suite - I want to be sure this is the way to go before I go ahead with that.

frame_equal is a weird name as we know we have a DataFrame - we do not prefix all other methods with frame either. It should just be df1.equals(df2) which is clear and concise. Same for series_equal. This also happens to correspond to what pandas does.

@github-actions github-actions bot added deprecation Add a deprecation warning to outdated functionality python Related to Python Polars labels Nov 22, 2023
@stinodego stinodego marked this pull request as ready for review November 22, 2023 03:47
@stinodego stinodego added this to the 0.19.16 milestone Nov 22, 2023
@ritchie46 ritchie46 merged commit 1694283 into main Nov 23, 2023
18 checks passed
@ritchie46 ritchie46 deleted the equals branch November 23, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Add a deprecation warning to outdated functionality python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename frame_equal and series_equal to frame_equals and series_equals (or just equals)
3 participants