摘要: 当在文本文件中,空值为null,读入dataframe中,空值为NaN时,使用pd.isnull()\pd.notnull()对一列进行空值判断; 参考:https://blog.csdn.net/xidianliutingting/article/details/62041891 阅读全文
posted @ 2018-06-19 17:49 Apollo_zhanghongbo 阅读(8578) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.runoob.com/python/att-string-format.html https://www.hackerrank.com/challenges/py-set-mutations/problem?h_r=next-challenge&h_v=zen 阅读全文
posted @ 2018-06-19 14:41 Apollo_zhanghongbo 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 开头几行:head 结尾几行:tail 中间几行:sed 1. 如果你只想看文件的前100行,可以使用head命令,如 head -100 filename 2. 如果你想查看文件的后100行,可以使用tail命令,如: tail -100 filename 或 tail -n 100 filena 阅读全文
posted @ 2018-06-19 10:42 Apollo_zhanghongbo 阅读(1416) 评论(0) 推荐(0) 编辑