DEV Community

Nilotpal Choudhury
Nilotpal Choudhury

Posted on

Answer: Renaming columns in pandas

Pandas 0.21+ Answer

There have been some significant updates to column renaming in version 0.21.

  • The rename method has added the axis parameter which may be set to columns or 1. This update makes this method match the rest of the pandas API. It still has the index and…

Top comments (0)