Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

On cheatsheet is rename command correct? #2

Closed
birdsarah opened this Issue Apr 22, 2015 · 1 comment

Comments

Projects
None yet
2 participants

Line 99 - df.rename({'a': 'y', 'b': 'z'})

I'm wondering whether it should be df.rename(columns={'a': 'y', 'b': 'z'}).

At the least, this was the pattern I needed to change my column names on pandas 0.16.0.

birdsarah changed the title from On cheatsheet is rename command correct to On cheatsheet is rename command correct? Apr 22, 2015

brandon-rhodes self-assigned this Apr 22, 2015

Owner

brandon-rhodes commented Apr 27, 2015

Thank you, Sarah! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment