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): Deprecate DataFrame.as_dict positional input #12131

Merged
merged 3 commits into from
Oct 31, 2023
Merged

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Oct 31, 2023

This was the last public function that still allowed a positional boolean input. I finally bit the bullet and marked it as keyword-only. Had to do some search&replace in our test suite as many legacy tests still use to_dict(False).

Note

If you used to_dict extensively in your test suite, it is recommended to use our assertion utility function assert_frame_equal instead.

@github-actions github-actions bot added deprecation Add a deprecation warning to outdated functionality python Related to Python Polars labels Oct 31, 2023
@stinodego stinodego marked this pull request as ready for review October 31, 2023 07:29
@stinodego stinodego merged commit 5689ad5 into main Oct 31, 2023
17 checks passed
@stinodego stinodego deleted the as-dict branch October 31, 2023 07:38
mcrumiller added a commit to mcrumiller/polars that referenced this pull request Oct 31, 2023
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.

None yet

1 participant