Kaggle competition: Conway's Reverse Game of Life 2020
train['fam']=train['SibSp']+train['Parch']+1
test['fam']=test['SibSp']+test['Parch']+1<data_type_conversions>
d1 = pd.read_csv(".. /input/the-game-of-life-cnn-delta-1/submit1.csv", index_col=0)
 print("Numbers of delta1's data:{}".format(d1.shape[0]))
train['Age']=train['Age'].astype(str)
 test['Age']=test['Age'].astype(str )<feature_engineering>
d2 = pd.read_csv(".. /input/the-game-of-life-cnn-delta-2/submit2.csv", index_col=0)
 print("Numbers of delta2's data:{}".format(d2.shape[0]))
cat={'2':1, '3':2 , '5':3, '1':4 ,'4':5,'8':6,'6':7,'7':8,'0':9,'9':10}
test['Age']=test['Age'].map(cat)
 test['Age'].unique().tolist()<feature_engineering>
d3 = pd.read_csv(".. /input/the-game-of-life-cnn-delta-3/submit3.csv", index_col=0)
 print("Numbers of delta3's data:{}".format(d3.shape[0]))
train['Title'] = train['Name'].map(lambda x: re.compile("([A-Za-z]+)\." ).search(x ).group())
 test['Title'] = test['Name'].map(lambda x: re.compile("([A-Za-z]+)\." ).search(x ).group())
 print(train['Title'].unique())
<feature_engineering>
d4 = pd.read_csv(".. /input/the-game-of-life-cnn-delta-4/submit4.csv", index_col=0)
 print("Numbers of delta4's data:{}".format(d4.shape[0]))
train['Title'] = train['Title'].replace(['Lady.', 'Capt.', 'Col.',
'Don.', 'Dr.', 'Major.', 'Rev.', 'Jonkheer.', 'Dona.'], 'Rare.')
 train['Title'] = train['Title'].replace(['Countess.', 'Lady', 'Sir'], 'Royal')
 train['Title'] = train['Title'].replace('Mlle.', 'Miss.')
 train['Title'] = train['Title'].replace('Ms.', 'Miss.')
 train['Title'] = train['Title'].replace('Mme.', 'Mrs.')
 train[['Title', 'Survived']].groupby(['Title'], as_index=False ).mean()<feature_engineering>
d5 = pd.read_csv(".. /input/the-game-of-life-cnn-delta-5/submit5.csv", index_col=0)
 print("Numbers of delta5's data:{}".format(d5.shape[0]))
<categorify><EOS> 
submitData = d1.copy()
submitData = submitData.append(d2)
 submitData = submitData.append(d3)
 submitData = submitData.append(d4)
 submitData = submitData.append(d5)
 submitData = submitData.sort_index()
submitData.to_csv("submission.csv")
 submitData