随笔分类 -  Python

摘要:pandas中df.ix, df.loc, df.iloc 的使用场景以及区别: "https://stackoverflow.com/questions/31593201/pandas iloc vs ix vs loc explanation" 阅读全文
posted @ 2017-09-09 11:30 sold_out 阅读(2683) 评论(0) 推荐(1)
摘要:Python pandas: check if any value is NaN in DataFrame 阅读全文
posted @ 2017-09-09 11:28 sold_out 阅读(30948) 评论(0) 推荐(1)
摘要:实现one hot encode的两种方法: "https://stackoverflow.com/questions/37292872/how can i one hot encode in python" 利用pandas实现one hot encode: 一个定性特征哑编码的demo: 使用 阅读全文
posted @ 2017-09-09 11:26 sold_out 阅读(3048) 评论(0) 推荐(0)
摘要:Counter class https://docs.python.org/2/library/collections.html collections.Counter 阅读全文
posted @ 2017-08-27 21:55 sold_out 阅读(220) 评论(0) 推荐(0)