text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

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

df1['Survived'].value_counts().plot.bar(color='r')
plt.show()
df1['Pclass'].value_counts().plot.bar()
plt.show()
df1['Sex'].value_counts().plot.bar(color='g')
plt.show()
df1['SibSp'].value_counts().plot.bar()
plt.show()
plt.show()
df1['Embarked'].value_counts().plot.bar()
plt.show()