text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

train_data = pd.read_csv('../input/titanic/train.csv')
test_data = pd.read_csv('../input/titanic/test.csv')

age_plt = sns.FacetGrid(train_data, col='Survived')
age_plt.map(plt.hist, 'Age', bins=20)

class_age_plt = sns.FacetGrid(train_data, col='Survived', row='Pclass', height=2.8, aspect=2.0)
class_age_plt.map(plt.hist, 'Age', bins=20)