Python code snippet – How to give name to column in pandas? Subash Chandran 16th October 2021 Leave a Comment df.rename(columns={"A": "a", "B": "b", "C": "c"}, errors="raise", inplace=True) Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Related See also CSS code snippet - How to remove lines from textarea? Snippets Python code snippet - How to give name to column in pandas? Change font size A Decrease font size. A Reset font size. A Increase font size.