text_html_output_1.png
import pandas as pd

df_train = pd.read_csv('../input/train.csv')
df_store = pd.read_csv('../input/store.csv')
df_test = pd.read_csv('../input/test.csv')

df_train['Year'] = df_train['Date'].apply(lambda x: int(x[:4]))

df_train['Month'] = df_train['Date'].apply(lambda x: int(x[5:7]))
df_train.Month.head()