text_plain_output_1.png image_output_1.png
import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_csv('../input/titanic/train.csv')
df1 = pd.read_csv('../input/titanic/train.csv')

df['Age'] = df['Age'].fillna(df['Age'].median())

df.dtypes

df.head()