利用 Python 进行数据分析学习笔记(二)
python 的数据分析包中提供了一系列强大的数据结构,本文将对三个最重要的数据结构进行介绍。 本文参考内容: Coursera 上学完的 《用 Python 玩转数据分析》 Pandas 官网的 10 分钟入门 NumPy 中的基本数据结构 ndarray ndarray 是 NumPy 的基石,它有哪些好处呢? 对于大计算量的性能非常好,所以 list 做运算的时候一定要转化为 array...
View Article[译]Python中的异步编程
原文: Asynchronous Programming in python 译者:杰微刊兼职翻译马娟 Quora的任务是分享并提高世界的认知,为了完成这个任务,我们不断地推出改进以使Quora对于我们的读者和作者来说速度更快。在我们上一篇文章里边,我们报道了我们近期对于客户端性能的优化,在这篇文章中,我们将讨论我们近期通过我们的异步编程架构对于服务器端性能的改进。...
View ArticleGeophysical Tutorial: Facies Classification using Machine Learning and Python
Published in the October 2016 edition of The Leading Edge magazine by the Society of Exploration Geophysicists. Read the full article here . By Brendon Hall, Enthought Geosciences Applications...
View Articlegoogle/subpar
Subpar Subpar is a utility for creating self-contained python executables. It is designed to work well with Bazel . Setup Add the following to your WORKSPACE file: git_repository( name = "subpar",...
View ArticleAn Intro to the Python Imaging Library
The python Imaging Library or PIL allowed you to do image processing in Python. The original author, Fredrik Lundh, wrote one of my favorite Python blogs when I first started learning Python. However,...
View Articlepython--同一mysql数据库下批量迁移数据
最近接手些mysql数据库维护,发现mysql在批量操作方面就是个渣渣啊,比起MS SQL SERVER简直就是“不可同日而语”。 咨询了下MySQL的高手,对于数据迁移这种问题,一种处理方式就是直接“一步到位” ,一次性将所有数据查询插入到另外一个表,然后再删除原表数据;另外一种处理方式就是使用 pt--archiver 工具来归档。...
View Articlepandasql: Make python speak SQL
This post was originally published on this blog Introduction One of my favorite things about python is that users get the benefit of observing the R community and then emulating the best parts of it....
View Article[Micropython]TPYBoard点亮LEDS及python 简要概念
原创版权归山东萝卜科技有限公司所有 , 转载必须以链接形式注明作者和原始出处。 tpyboard 板上最容易实现的事情莫过于点亮板上附带的小灯。连接开发板,按照上篇教程中提到的登录方法,就可与在解释器中开始点亮 LED 灯了,代码如下: myled = pyb.LED(1)myled.on()myled.off() 这些命令将控制 LED 的亮和灭。...
View ArticlePyCon India 2016, Delhi
The delay in writing about PyCon is procrastination, as much as getting myself involved with too many things at the same time. I am happy to have attended this memorable event and hope to spread some...
View Article豆瓣工程师为你解答关于 Python3 编程方面的问题
豆瓣工程师为你解答关于 python3 编程方面的问题 7小时前来源:伊甸园开源社区 摘要: Python 是如此活跃的一种语言,目前学习 Python 要不要直接学Python 3? Python 3有哪些优点,迁移成本如何?豆瓣技术大牛为你解答。 php?url=0EdVqfNe6T" alt="豆瓣工程师为你解答关于 Python3 编程方面的问题"...
View Article为采集动态网页安装和测试Python Selenium库
1. 引言 上一篇《 为编写网络爬虫程序安装python3.5 》中测试小例子对静态网页做了一个简单的采集程序,而动态网页因为需要动态加载js获取数据,所以使用urllib直接openurl已经不能满足采集的需求了。这里我们使用selenium库,通过它我们可以很简单的使用浏览器来为我们加载动态内容,从而获取采集结果。...
View ArticleGeek入门神器:TPYBoard-能跑MicroPython的stm32开发板
0x01 引言 Micropython是运行在微控制器上的Python,遵守MIT协议。剑桥大学数学科学中心的Damien P. George在研究各种深奥数学、物理问题之余,还搞了一个MicroPython项目,将Python移植到ARM Cortex M微处理器上,并开发了电路板。2013年曾经在KickStarter上成功筹得近10万英镑。2014年成功完成项目,发货。 参考网站:...
View ArticlePython的namedtuple命名元组
python有一个类似tuple的容器namedtuples(命名元组),位于collection模块中。namedtuple是继承自tuple的子类,可创建一个和tuple类似的对象,而且对象拥有可访问的属性。 示例1: import collections # 创建namedtuple Student =...
View ArticlePackage of the Week: django-hosts
This is a very handy Django package that I’ve used in a couple of projects. Essentially django-hosts let you serve different parts of your application under different subdomains. For example, let’s...
View ArticlePython练习题 001:4个数字求不重复的3位数
听说做练习是掌握一门编程语言的最佳途径,那就争取先做满100道题吧。 ---------------------------------------------------------------------- 【python练习题 001】有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 这题还算比较简单,思路是:先确定百位数、然后是十位数、个位数。1-4...
View Article打造数据科学作品集:从机器学习项目开始
本文是「打造数据科学的作品集」的第三篇,全文大约 25000 字符,读完大约需要 37 分钟。 作者:Vik Paruchuri,译者:唐晓霆,校对:EarlGrey,出品:pythonTG 翻译组/编程派 如果你喜欢并希望及时获取本系列的最新文章,可以订阅我们。...
View Articlepython hard way中的一个小例子,简单的游戏引擎
python hard way中的一个小例子,简单的游戏引擎 3小时前来源:CSDN博客 这个是我在学习python时候在书上抄的小例子,上面只有注释是我自己写的。。。。 import random #import urllib import urllib2#同一资源定位符库import socket #套接字库,用来设置服务器from sys import exit...
View ArticleHandling missing keys in Python dictionaries
In python,dictionaries are containers which map one key to its value with access time complexity to be O(1) . But in many applications, the user doesn’t know all the keys present in the dictionaries....
View ArticlePyCharm Settings Repository
I have two main computers where I program at home - a desktop and a laptop. I use PyCharm in both. Like any other complex tool, PyCharm requires complex configuration - the Wombat color theme with...
View Articlepycharm 远程调试kodi python plugin
kodi是什么我就不说了,附上一张我的kodi插件图。这个播放器最强大的功能就是支持python编写的插件。 但是有些老的插件作者已经不打算更新或维护了,使用的话又会有一些问题,这时就需要调试来修复问题了。 我最近使用的爱奇艺播放插件作者也是好久没更新,有了这个插件都不用去买爱奇艺VIP了,播放也没有广告。 官方教程是使用Eclipse来调试,但是这个并不是很好用。网上也没有相关的资料。...
View Article