Sas R和Python的比较| 数据分析的工具选择
Sas R和python的比较| 数据分析的工具选择 一点号社会学吧6小时前 编者按:过去几年,数据分析界被R弄得神魂颠倒,但R的风潮尚未过去,Python又兴起了,并有愈演愈烈之势。而传统的数据分析工具,老牌的SAS和SPSS依然还占据市场,那我们究竟该如何选择数据分析工具呢?本文原载于analyticsvidhya.com,作者Kunal...
View ArticleTalk Python to Me: #77 20 Python Libraries You Aren't Using (But Should)
Many of you write to me and tell me how you appreciate the way my guests and I highlight a particular python package at the end of each episode. Well if you enjoy that little segment, you're going to...
View Article使用Scrapy写个增量式图书爬虫
需求分析 爬取图书(特别是小说)数据并存储,用作之后的分析。 可以爬取的站点有Amazon、京东、当当、腾讯旗下的一众小说网站(腾讯文学、创世中文、云起书院)、起点中文网等等。 爬虫选择 根据自己熟悉的语言来调查分析网上流行的爬虫。 并最终根据自身情况选择了Scrapy。 以云起书院为例来分析相关网站的模式...
View ArticlePython中的下划线的用法总结
平时在看代码的时候,总是看到各种下划线。掌握了下划线的用法无论是对于读代码还是写代码还是有好处的。虽然说网上也有很多的资料讲下划线,但是自己还是要总结一遍加深理解。 单划线(_) 在解释器中 在解释器中, _ 代表交互式解释器会话中上一条的执行结果。这种用法有点类似于linux中的上一条命令的用法。只不过在在python解释器中表示的上一条执行的结果。 >>>...
View Article使用 ChatterBot构建聊天机器人
ChatterBot是一个基于机器学习的聊天机器人引擎,构建在python上,主要特点是可以自可以从已有的对话中进行学习。 安装调试最简单的聊天机器人 安装 pipinstallchatterbot 基本使用 #!/usr/bin/python # -*- coding: utf-8 -*- fromchatterbotimportChatBot...
View Article使用Python计算文本相似性之编辑距离
在做爬虫的时候,很容易保持一些相似的数据,这些相似的数据由于不完全一致,如果要通过人工一一的审核,将耗费大量的时间,在上一遍介绍simhash的文章中,提到了编辑距离,我们先来了解下什么是编辑距离。 编辑距离(Edit...
View Article[原]老曹眼中的Lambda
“ λ ”像一个双手插兜儿,独自行走的人,有“失意、无奈、孤独”的感觉。λ 读作Lambda,是物理上的波长符号,放射学的衰变常数,线性代数中的特征值……在程序和代码的世界里,它代表了函数表达式,系统架构,以及云计算架构。 代码中的Lambda Lambda表达式基于数学中的λ演算得名,可以看作是匿名函数,可以代替表达式,函数,闭包等,也支持类型推论,可以远离匿名内部类。 为什么使用Lambda呢?...
View ArticleHow do I make my own command line commands using Python?
How do I make my own command line commands using python? by Daniel Bader ― Get free updates of new posts here . The Python script you just wrote would make a great little command line tool but having...
View ArticlePython Core Development Sprint 2016: 3.6 and beyond!
From September 5th to the 9th a group of python core developers gathered for a sprint hosted at Instagram and sponsored by Instagram , Microsoft , and the Python Software Foundation . The goal was to...
View ArticleThe Road to TensorFlow Part 7: Finally Some Code
Introduction Well after a long journey throughlinux, python , Python Libraries , the Stock Market , an Introduction to Neural Networks and training Neural Networks we are now ready to look at a...
View Articlepython 笔记
python最大的问题莫过于编码问题了!(还没用过 python3 ,不知道 python3 对于编码问题解决了多少,真心觉得 python 不适合我使用。。。。ascii的字符串还要encode成utf8才能正常食用 坑 flask里面的static目录不里面的路径不支持中文(刚接触也不知道怎么整,于是我造了个下面的轮子 文件的第一行务必加上 # -*- coding: UTF-8 -*- url...
View Article2016 World Cup of Hockey NHL Team Captains
Today we’ll scrape some data from wikipedia and use Bokeh to make a stacked bar chart showing the number of NHL captains per team in the World Cup of Hockey. This tournament is currently being played...
View ArticleNew language expands on Google's Go
One sure sign your language is successful is when people build other languages that transpile into it.javascript remains the prime example, but Google's Go language is shaping up to be a contender....
View ArticleManifold: getting ready for the new <timestamp, object> store
Previously, Manifold did not directly deal with timestamps. Instead, rtndf includes a timestamp in the JSON part of the JSON and binary messages that are passed around over the Manifold. However, I am...
View ArticleFun with Markov Chains, Python, and Twilio SMS
Fun with Markov Chains, python, and Twilio SMS One of the many allures of Twitter is that you can tweet at your favorite celebrity and (maybe) get a response. Still though,tweeting isn’tquite as...
View Article验证码程序识别小试
本文已被浏览 121 次 昨天上图书馆查了下我借了好像快一个月的书,发现竟然已经过期1天,于是今天赶紧还了去,最后还是被扣了钱。后来我想了一下,何不写一个程序,跑在我树莓派或者某台云主机上,每天零点自动登录图书馆系统给我查询有没有什么该还的书籍之类的,在到期前几天发送邮件通知我。...
View ArticleCMOS #10: Michael Kennedy - Talk Python To Me
00:03 Gabor Szabo Hi there, you are welcome to the CMOS, the Code Maven Open Source interview series and podcast. I'm your host, Gabor Szabo, and with me is Michael Kennedy . Hi Michael! 00:18 Michael...
View ArticleAn Introduction to Stock Market Data Analysis with Python (Part 1)
This post originally appeared on Curtis Miller's blog and was republished here on the Yhat blog with his permission. Kudos and thanks, Curtis! :) This post is the first in a two-part series on stock...
View Article老司机手把手带你做 UI 自动化测试
互联网产品的迭代速度远高于传统软件,尤其是移动APP不但更新频繁,还需要在不同硬件、系统版本的环境下进行大量兼容测试,这就给传统测试方法和测试工具带来了巨大挑战。为满足产品敏捷开发、快速迭代的需求,自动化测试逐渐流行起来。自动化测试是把以人为驱动的测试行为转化为机器执行的一种过程。...
View Article