Skip to content

rename should warn when column does not exist #24311

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

Closed
aamster opened this issue Dec 16, 2018 · 1 comment
Closed

rename should warn when column does not exist #24311

aamster opened this issue Dec 16, 2018 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request

Comments

@aamster
Copy link

aamster commented Dec 16, 2018

boston.rename(columns={'1': 'zn', '12': 'medv'}, inplace=True)

had no effect since columns '1' and '12' don't exist. There should be a warning when column does not exist.

@TomAugspurger
Copy link
Contributor

Duplicate of #13473.

We'd like to add a keyword to control this behavior.

@TomAugspurger TomAugspurger added the Duplicate Report Duplicate issue or pull request label Dec 16, 2018
@TomAugspurger TomAugspurger added this to the No action milestone Dec 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants