application_vnd.jupyter.stderr_output_1.png
figure = plt.figure(figsize=(15, 8))
plt.hist([data[data['Survived'] == 1]['Age'], data[data['Survived'] == 0]['Age']], color=['g', 'r'], bins=10, label=['Survived', 'Dead'])
plt.xlabel('Age')
plt.ylabel('Number of passengers')
plt.legend()