import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sea
   

df1= pd.read_csv("train.csv")
df2= pd.read_csv("test.csv")
combine = [df1,df2]
titanic = pd.concat(combine)
titanic['Gender'] = titanic['Sex'].map( {'male': 1, 'female': 0} ).astype(int)
titanic.drop('Sex',inplace= True,axis=1)
titanic


