for j in range(len(df.columns)): old = df.columns[j] new = new_columns[j] df = df.rename(columns = {old:new})