上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: https://jingyan.baidu.com/article/0eb457e508b6d303f0a90572.html 假如我们想要筛选D列数据中大于0的行:df[df['D']>0] 使用&符号可以实现多条件筛选,当然是用"|"符号也可以实现多条件,只不过他是或的关系。df[df['D'] 阅读全文
posted @ 2018-09-03 16:22 xubling 阅读(1865) 评论(0) 推荐(0) 编辑
摘要: 统计所有列的空值:data.isnull().sum() 转化成list: df.isnull().sum().index.tolist() df.isnull().sum().values.tolist() 还可以直接变为字典。 dict(data.isnull().sum()) 阅读全文
posted @ 2018-08-22 23:21 xubling 阅读(4573) 评论(0) 推荐(0) 编辑
摘要: 转自https://blog.csdn.net/u014236259/article/details/75212659 在我们安装Python后,如果未安装包管理工具pip,此时需要自己手动安装: 方式1(yum安装):1、首先安装epel扩展源:[root@localhost ~]# yum -y 阅读全文
posted @ 2018-08-22 21:23 xubling 阅读(1076) 评论(0) 推荐(0) 编辑
摘要: 如题。 阅读全文
posted @ 2018-08-22 20:40 xubling 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 直接使用pip3 install scrapy会报很多错误,所以试试以下步骤。 (1) https://www.lfd.uci.edu/~gohlke/pythonlibs/ 在这个python第三方库里下载三个包:分别是lxml,twisted,scrapy。【按照自己的电脑和Python版本下载 阅读全文
posted @ 2017-12-25 10:59 xubling 阅读(5239) 评论(0) 推荐(1) 编辑
摘要: 需要的各种模块就自己下载安装,还需要准备文件: .jpg(背景图片) .txt(需要生成词云的文章) .ttf(网上down一个中文的字体) 效果图: 背景是女盆友照片,嗯,先酱! http://blog.csdn.net/vivian_ll/article/details/68067574 htt 阅读全文
posted @ 2017-10-07 18:28 xubling 阅读(2041) 评论(0) 推荐(1) 编辑
摘要: 环境: 操作系统:Windows 7 64位 语言:Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:17:26) wordcloud 安装,执行如下命令: python install wordcloud 报错如下: 阅读全文
posted @ 2017-10-07 16:06 xubling 阅读(11947) 评论(0) 推荐(1) 编辑
摘要: sorted(dict.items(), key=lambda e:e[0], reverse=True) 里面三个参数 dict.items() #可迭代元素。 key= lambda d:d[0]#d[0]表示按键,d[1]表示按值。 reverse#默认是False,升序排列。当值为True时 阅读全文
posted @ 2017-10-07 15:45 xubling 阅读(13562) 评论(0) 推荐(2) 编辑
摘要: (按键 Esc 开启) Enter : 转入编辑模式 Shift-Enter : 运行本单元,选中下个单元 Ctrl-Enter : 运行本单元 Alt-Enter : 运行本单元,在其下插入新单元 Y : 单元转入代码状态 M :单元转入markdown状态 R : 单元转入raw状态 1 : 设 阅读全文
posted @ 2017-09-28 14:47 xubling 阅读(1399) 评论(0) 推荐(0) 编辑
摘要: 使用python开发,环境有Python2和 python3 两种,有时候需要两种环境切换使用,下面提供详细教程一份。 1、下载python3和python2 进入python官网,链接https://www.python.org/ 选择Downloads >Windows,点击进入就可以看到寻找想 阅读全文
posted @ 2017-09-22 17:11 xubling 阅读(836) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页