码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2017-10-28 20:32:52      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:with   titan   class   exe   kaggle   lib   nts   pac   amp   

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

标签:with   titan   class   exe   kaggle   lib   nts   pac   amp   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!