text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

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

train.columns

g = sns.FacetGrid(data=train, col='Survived')
g = g.map(plt.hist, 'Age', bins=25)

grid = sns.FacetGrid(data=train, col='Survived', row='Pclass', size=2.2, aspect=1.6)
grid.map(plt.hist, 'Age', alpha=0.7, bins=20)
grid.add_legend()