import pandas as pd
import numpy as np
df_red = pd.read_csv('red.csv')
df_white = pd.read_csv('white.csv')
- Creating a new column 'color' in both datasets before appending data
- After appending data column 'color' indicates :
which rows is related to red wine and which rows is related to white wine
df_red.loc[:,'color'] = 'red'
df_red.head()
df_white.loc[:,'color'] = 'white'
df_white.head()