1. 程式人生 > >Data Analysis with Python : Exercise- Titantic Survivor Analysis | packtpub.com

Data Analysis with Python : Exercise- Titantic Survivor Analysis | packtpub.com

.com pub nal kaggle out conda anti vivo python

kaggle-titantic, from: https://www.youtube.com/watch?v=siEPqQsPLKA

install matplotlib:

conda install matplotlib

install scikit-learn:

conda install scikit-learn

train_df.count() #查看缺失數據

train_df.Age.min() train_df.Age.max()

train_df.Survived.value_counts()

train_df.Sex.value_counts().plot(kind=‘bar‘)

train_df [ (train_df[‘Sex‘] == ‘male‘) & (train_df[‘Pclass‘] == 1)] [‘Survived‘].value_counts().plot(kind=‘bar‘)

Data Analysis with Python : Exercise- Titantic Survivor Analysis | packtpub.com