Skip to content

Conversation

@Starlessnightx
Copy link
Contributor

@Starlessnightx Starlessnightx commented Oct 22, 2025

@Starlessnightx Starlessnightx force-pushed the fix-multi-docstring branch 2 times, most recently from 01bb8ca to 80d8560 Compare October 22, 2025 05:22
@mroeschke mroeschke added the Docs label Oct 22, 2025
@mroeschke mroeschke added this to the 3.0 milestone Oct 22, 2025
@mroeschke mroeschke merged commit c838801 into pandas-dev:main Oct 22, 2025
45 checks passed
@mroeschke
Copy link
Member

Thanks @Starlessnightx

Comment on lines +2340 to +2342
>>> idx = pd.Index(["a", "b", "c"])
>>> idx.take([2, 2, 1, 2])
Index(['c', 'c', 'b', 'c'], dtype='str')
Copy link
Member

Choose a reason for hiding this comment

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

If you're interested in follow with with another PR, could you change these examples to use a MultiIndex instead of an Index

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mroeschke Thank you for the review! You're absolutely right, these examples should indeed use MultiIndex to better demonstrate the method's functionality.

I've understood what needs to be modified:

  • In the examples for both take and repeat methods, change the regular Index examples to MultiIndex examples

I'll fix these issues in a follow-up PR to ensure the example code uses proper MultiIndex to demonstrate the method usage.

Thanks for the guidance!

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.

2 participants