-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
ENH: Add axis
parameter to add_prefix
and add_suffix
#47819
Comments
Sounds reasonable to add an |
new |
A copy kwarg would be good |
this sounds nice. [ PS - @still-n0thing: is this is something you would like to work on / are already working on ] |
@dannyi96 I haven't started working on it. You could take up this issue if you want to. |
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
df.add_prefix
anddf.add_suffix
can be used on columns only.Would be super handy if it can be used on the index to.
Preferably with the option
inplace
.Example:
DataFrame:
New feature:
Expected result:
Implementation suggestion:
Feature Description
Alternative Solutions
Implementation suggestion:
Additional Context
No response
The text was updated successfully, but these errors were encountered: