Answers for "how to rename multilples files with column names with pandas rename column tutorial"

2

rename multiple pandas columns with list

for j in range(len(df.columns)):
    old = df.columns[j]
    new = new_columns[j]
    df = df.rename(columns = {old:new})
Posted by: Guest on April-30-2020

Code answers related to "how to rename multilples files with column names with pandas rename column tutorial"

Python Answers by Framework

Browse Popular Code Answers by Language