application_vnd.jupyter.stderr_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

train = pd.read_csv('C:/Users/Peng/Documents/APS/Data-Analysis-Blog/Kaggle/Titanic/train.csv')
test = pd.read_csv('C:/Users/Peng/Documents/APS/Data-Analysis-Blog/Kaggle/Titanic/test.csv')
gender_submission = pd.read_csv('C:/Users/Peng/Documents/APS/Data-Analysis-Blog/Kaggle/Titanic/gender_submission.csv')

(train.shape, test.shape)

labels = ('Cherbourg', 'Queenstown', 'Southampton')
sizes = [sum(train['Embarked'] == 'C'), sum(train['Embarked'] == 'Q'), sum(train['Embarked'] == 'S')]
colors = ['yellow', 'aqua', 'lime']
plt.pie(sizes, labels=labels, colors=colors, autopct='%1.1f%%', startangle=90)
plt.axis('equal')
plt.show()