- Renaming columns -> .rename(columns={'old_name':'new_name'}, inplace=True)
import pandas as pd
import numpy as np
df_red = pd.read_csv('red.csv')
df_white = pd.read_csv('white.csv')
-Following examples are for learning how to rename column names
-You do not need to rename column names of our datasets
df_red.rename(columns={'fixed_acidity':'fixedacidity'}, inplace=True)
df_red.head()
df_white.rename(columns={'fixed_acidity':'fixedacidity'}, inplace=True)
df_white.head()