Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #rename #column #pandas
ADD COMMENT
Topic
Name
7+3 =