Answers for "change the column name of a dataframe"

0

rename column pandas

>>> df.rename(columns={"A": "a", "B": "b", "C": "c"}, errors="raise")
Traceback (most recent call last):
KeyError: ['C'] not found in axis
Posted by: Guest on June-10-2020

Code answers related to "change the column name of a dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language