text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('../input/train.csv', index_col='PassengerId')

df.dropna().describe()

sns.factorplot(x='Pclass', y='Survived', data=df, kind='bar', size=5, ci=None)
plt.title('Survival Rate by Class')