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: Previous implementation of DataFrame.stack #55448

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

rhshadrach
Copy link
Member

@rhshadrach rhshadrach added Reshaping Concat, Merge/Join, Stack/Unstack, Explode Deprecate Functionality to remove in pandas labels Oct 9, 2023
@rhshadrach rhshadrach added this to the 2.2 milestone Oct 9, 2023
@rhshadrach rhshadrach requested a review from mroeschke October 9, 2023 20:49
@@ -249,6 +249,9 @@ def test_merge_on_extension_array_duplicates(self, data):
)
tm.assert_frame_equal(result, expected)

@pytest.mark.filterwarnings(
"ignore:The previous implementation of stack is deprecated"
Copy link
Member

Choose a reason for hiding this comment

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

Just for my edification, when this deprecation is enforced will we need to change all/most of these unit tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct - but all tests that use stack test with both future_stack=False and future_stack=True. So it will just be ripping out the future_stack=False case.

@mroeschke mroeschke merged commit a83f6aa into pandas-dev:main Oct 17, 2023
33 checks passed
@mroeschke
Copy link
Member

Thanks @rhshadrach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR/BUG: DataFrame.stack including all null rows when stacking multiple levels
2 participants