Skip to content

Conversation

@dkane01
Copy link
Contributor

@dkane01 dkane01 commented Oct 21, 2025

This PR clarifies behavior for the MultiIndex.swaplevel method's default arguments.

Calling this method does not change the ordering of the values.
Default is to swap the last two levels of the MultiIndex.
Copy link
Member

Choose a reason for hiding this comment

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

In the Parameters section can you describe what negative numbers mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Details for how negative numbers behave has been added.

@mroeschke mroeschke added the Docs label Oct 21, 2025
@dkane01 dkane01 requested a review from mroeschke October 22, 2025 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC: MultiIndex.swaplevel default argument values could use an explanation

2 participants