python-kaggle比赛资料收集

来源:互联网 发布:数据库存储文件类型 编辑:程序博客网 时间:2024/06/05 22:43

需要在两天之类解决一个糖尿病预测问题,所以需要直接上手打kaggle比赛的一些经验!!!

用python参加Kaggle的些许经验总结
Getting Started With Python
Getting Started With Python II
Getting Started With Random Forests
十分钟搞定pandas
pandas 数据规整

pandas中object转换类型

a = [['a', '1.2', '4.2'], ['b', '70', '0.03'], ['x', '5', '0']]df = pd.DataFrame(a, columns=['one', 'two', 'three'])dfOut[16]:   one  two three0   a  1.2   4.21   b   70  0.032   x    5     0df.dtypesOut[17]: one      objecttwo      objectthree    objectdf[['two', 'three']] = df[['two', 'three']].astype(float)df.dtypesOut[19]: one       objecttwo      float64three    float64
0 0