Custom Toolboxes and Python Toolboxes in ArcGIS
This blog post examines the differences between custom toolboxes and python toolboxes in ArcGIS Desktop. ArcGIS Desktop enables you to create custom toolboxes and Python toolboxes. As both are related...
View ArticlePut-Call Parity in Python Programming Language
Put Call Parityin python We talked about Covered Call Strategy and Long Call Butterfly Strategy in our previous articles on the blog. Now, we shall talk about the Put-call Parity . Put-call parity...
View Article10 天 100 小时学数据科学
导读:有位网友在 Quora 提问,并补充说「我有10天空闲时间,每天想花十个小时学习数据科学入门知识,应该学点什么呢?谢谢」伯乐在线摘编了 Roman Trusov 的回复,非常值得新手参考。 哥们我太羡慕你了,不是谁都有像你这样的机会的。 10天100小时的学习时间里应该分配给尽量多样化的知识。这也算是一大笔投资,所以应当严肃对待,根据学出来的结果可以把拿到实习 offer 之类的当做目标。...
View Articlepython enumerate 用法
A new built-in function, enumerate() , will make certain loops a bit clearer. enumerate(thing) , where thing is either an iterator or a sequence, returns a iterator that will return (0, thing [0]) ,...
View ArticleIntroduction to MongoDB and Python
python is a powerful programming language used for many different types of applications within the development community. Many know it as a flexible language that can handle just about any task. So,...
View ArticleConan, a C, C++ and Python package manager
No, conan is not aiming to replace any python package manager like pip/PyPi. Sorry for the click-bait title, but when we realized what conan was able to do, we couldn’t avoid it :) Conan is a C and C++...
View ArticleHDFS vs HBase in PySpark 2.0
It's been a challenging period at Tribe . In case you don't know, I am in charge of selecting and implementing the architecture for an ad Exchange with a focus on latency and performance. As fun as it...
View Article41个有关Python的小技巧
1. 拆箱 拆箱 2. 拆箱变量交换 拆箱变量交换 3. 扩展拆箱(只兼容python3) 扩展拆箱(只兼容python3) 4. 负数索引 负数索引 5. 负数索引 负数索引 6. 负数索引切割列表 负数索引切割列表 7. 指定步长切割列表 指定步长切割列表 8. 负数步长切割列表 负数步长切割列表 9. 列表切割赋值 列表切割赋值 10. 命名列表切割方式 命名列表切割方式 11....
View ArticlePyMongo模块的使用-MongoDB的Python接口
MongoDB 是近年来非常流行的开源 NoSQL 数据库,它使用JSON存储数据。 Ubuntu 16.04 安装 MongoDB PyMongo是Mongo官方开发python模块,用来操作MongoDB数据库。 我做的一个爬虫用到了MongoDB。 PyMongo文档: https://api.mongodb.com/python/current/ 安装PyMongo $...
View ArticleFinding Odin - Part 2 - Application architecture
(This post is part of thefinding-odin series.) Read the introduction: Finding my cat Odin using python and Elasticsearch . Before beginning development of any kind, I like to map out the components of...
View ArticleReal-Time Edge Detection using OpenCV in Python
The objective of the program given is to perform edge detection of images in real-time. In this article, the popular canny edge detection algorithm is used to detect a wide range of edges in images....
View ArticlePython日常实践(1)――SQL Prompt的Snippets批量整理
引言 个人平时在写sql脚本的时候会使用到SQL Prompt这款插件,除了强大的智能提示和格式化sql语句功能,我还喜欢使用Snippets代码段功能。比如我们可以在查下分析器输入ssf后按Tab键,SQL Prompt就可以帮我们快速的输入SELECT * FROM 。...
View ArticleLintel Technologies: How Implement Multiservice in Twisted.
Multiservice module is service collection provided by twisted, which is useful for creating a new service and combines with two or more existing services. The major tools that manages Twisted...
View Articlepython xml.etree.ElementTree 学习小结
这两天看了下python对xml的解析,发现原来有这么多的方法,这么多的类库,可以做这件事情,光是看官方的xml文档,头都看大了。可是在实际的使用中,至少对我来说,性能不是最重要的,简单易用才是最重要的,于是毫无疑问xml.etree.ElementTree这个模块,最符合我的要求。 赤裸裸的复制大神的文章段落: 应该使用哪个 XML 库? Python 有非常非常多的工具来处理...
View ArticleGenerating realistic dates using SQL Data Generator and Python
Guest Blogger: Phil Factor This is a guest post from Phil Factor. Phil Factor (real name withheld to protect the guilty), aka Database Mole, has 30 years of experience with database-intensive...
View ArticlePyCharm: Python 3.6: A quick look
The new version of python, version 3.6, is planned to be released on Friday December 16th. Let’s take a quick look at the new features that are included in this release, and play around with it a...
View ArticleSEG machine learning contest: there's still time
Have you been looking for an excuse to find out what machine learning is all about? Or maybe learn a bit of python programming language? If so, you need to check out Brendon Hall's tutorial in the...
View ArticleAdvent of Code - Day 9 to 12
I’ve got a bunch of code to share so let’s get started. As before, be sure to check my repo for the full code of my solutions. Day 9 Day 9 was a doozy. Basically the idea was to work with a compressed...
View ArticlePython中的字符串与字符编码详解
本节内容: 前言 相关概念 python中的默认编码 Python2与Python3中对字符串的支持 字符编码转换 一、前言 Python中的字符编码是个老生常谈的话题,同行们都写过很多这方面的文章。有的人云亦云,也有的写得很深入。近日看到某知名培训机构的教学视频中再次谈及此问题,讲解的还是不尽人意,所以才想写这篇文字。一方面,梳理一下相关知识,另一方面,希望给其他人些许帮助。 Python2的...
View ArticlePython数据类型之“集合(Sets)与映射(Mapping)”
一、集合类型(Sets) 集合对象是不同的(不可重复)hashable对象的无序集合。常见用法包括:成员关系测试、移除序列中的重复、以及科学计算,例如交集、并集、差分和对称差分。通俗点来说,集合是一个无序不重复元素的数据集,其基本功能是进行成员关系测试和消除重复元素。 目前有两种内置的集合类型:set 和 frozenset。set类型是可变的--可以使用add() 和...
View Article