首页 > 编程语言 > 详细

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

时间:2017-10-28 20:19:11      阅读:374      评论:0      收藏:0      [点我收藏+]

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

原文:http://www.cnblogs.com/HITSZ/p/7747859.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!