蠎加载 169

原文: Import Python Weekly Newsletter - Issue No 169 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 用 GoCD 在 K8s 上持续交付 offtopic GoCD now integrates natively with Kubernetes! GoCD’s pipeline capability along with Kubernetes’ highly programmable platform provide you the premiere Continuous Delivery tool on modern infrastructure. (是也乎: G 字开头的一般都是… ) 用 Python分析 14 亿行代码 ngram The Google Ngram viewer is a fun/useful tool that uses Google’s vast trove of data scanned from books to plot word usage over time. (是也乎: PyTubes 的广告? ) 如何在 Pandas 中重写 SQL 查询, 等等 pandas, sql SQL was a go-to tool when you needed to get a quick-and-dirty look at some data, and draw preliminary conclusions that might, eventually, lead to a report or an application being written. This is called exploratory analysis. These days, data comes in many shapes and forms, and it’s not synonymous with “relational database” anymore. You may end up with CSV files, plain text, Parquet, HDF5, and who knows what else. This is where Pandas library shines. 用 Gensim 进行主题建模 (Python) - 实用指南 gensim Topic Modeling is a technique to extract the hidden topics from large volumes of text. Latent Dirichlet Allocation(LDA) is a popular algorithm for topic modeling with excellent implementations in the Python’s Gensim package. The challenge, however, is how to extract good quality of topics that are clear, segregated and meaningful. Tthis depends heavily on the quality of text preprocessing and the strategy of finding the optimal number of topics. This tutorial attempts to tackle both of these problems. (是也乎: 那什么, 不是 3D 建模, 是文本分析中的主题分类… ) Python Exceptions 权威性指南 exceptions Three years after my definitive guide on Python classic, static, class and abstract methods, it seems to be time for a new one. Here, I would like to dissect and discuss Python exceptions. (是也乎: Python异常的权威性指南 这种翻译, 怎么看怎么无法接受… ) ...

2018-04-02 · 4 min · 1524 words · ZoomQuiet

蠎加载 168

原文: Import Python Weekly Newsletter - Issue No 168 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 2017 以及 2018 学年 Python 中重构的伟大 - Khan Academy Engineering core-python, refactor This blog post is first in a series describing the Great Khan Academy Python Refactor of 2017 And Also 2018. In this post, I’ll explain where our codebase went wrong, what we wanted to do to fix it, and why it was so difficult. It will include tips and code that others can use to avoid some of this difficulty themselves. The second post will describe Slicker, a tool we wrote which formed the backbone of our refactoring effort. The third post will describe how we used this refactoring as an opportunity to reduce inter-file dependencies within our codebase, and how that benefited us. (是也乎: Khan 学院的系列文章, 谈及 Python 开发中常见的一些问题和解决. ) 用 GeoPandas 在 Python 中创建分级统计世界地图 jupyter, geo There are different ways of creating choropleth maps in Python. In a previous notebook, I showed how you can use the Basemap library to accomplish this. More than 2 years have passed since publication and the available tools have evolved a lot. In this notebook I use the GeoPandas library to create a choropleth map. As you’ll see the code is more concise and easier to follow along. (是也乎: 用 matplotlib 来嗯哼, 其实有很多专门的图形库, 可以更加简洁的完成这种绘制了. ) Django CBV 全面指南. django Class Based Views (CBV) is one of my favourite things about Django. During my first Django projects (using Django 1.4 around 6 years ago) I was mainly using functional views — that’s what the tutorial recommended then anyway. However, slowly in my next projects I started reducing the amount of functional views and embracing CBVs, slowly understanding their usage and usefulness. Right now, I more or less only use CBVs for my views; even if sometimes it seems more work to use a CBV instead of a functional one I know that sometime in the future I’d be glad that I did it since I’ll want to re-use some view functionality and CBVs are more or less the only way to have DRY views in Django. 基于 Python DIY 自驾平台 self driving An opensource DIY self driving platform for small scale cars. RC CAR + Raspberry Pi + Python (tornado, keras, tensorflow, opencv,. 和 Python 一起艺术创作 book A book to bring the joy of programming to creative people. With step by step instructions for beginners and tiny programs, fundamental programming concepts are introduced in bite sized sketches. In later chapters, these program sketches become powerful drawing programs, capable of generating new images for 3D printing, CNC, and more. (是也乎: 可惜没有音乐类的创作介绍… ) 用 Python 装饰器进行身份验证 decorator, core-python A Refresher. 棉花糖: 简化Python的对象序列化 serialization Hacker news discussion. (是也乎: 叕一个尝试构建全新数据转换生态的核心模块 marshmallow-code/marshmallow: A lightweight library for converting complex objects to and from simple Python datatypes. 可惜… ) Twitter 分析与 Python twitter Twitter is a good ressource to collect data. We can find a few libraries (R or Python) which allow you to build your own dataset with the data generated by Twitter. This tutorial is focus on the preparation of the data and no on the collect. Throughout this analysis we are going to see how to work with the twitter’s data. (是也乎: 叕一则用 twitter 开放数据来作嗯哼的案例, 所以, Fb 要是象 twitter 一样一直公开就不会出事儿了吧… ) 为 Python 应用构建最小 Docker 容器 docker A best practice when creating Docker containers is keeping the image size to a minimum. The fewer bytes you have to shunt over the network or store on disk, the better. Keeping the size down generally means it is faster to build and deploy your container. 用 Python 构建 Google Analytics Slack Bot analytics Google Analytics is an incredibly powerful tool. All of the members of your team can see everything from which sources your web traffic comes from to what demographics frequent your site. There’s just one problem, Nobody is willing to go to the Google Analytics site and look. If these features aren’t used they may as well not exist. So, to give teammates easier access you can make a custom Slackbot to display Google Analytics. (是也乎: 面对 Slack 以及 Google 这种接口非常开放的服务平台, 用少量代码完成联接, 一直是非常简单的事儿… 可惜… ) 从 python 到 Go 又到 Rust: 自以为是的旅程 golang When looking for a new backend language, I naturally went from Python to the new cool kid: Go. But after only one week of Go, I realised that Go was only half of a progress. Better suited to my needs than Python, but too far away from the developer experience I was enjoying when doing Elm in the frontend. So I gave Rust a try. 好物 ~ 包/模块/库/片段… ...

2018-03-25 · 4 min · 1645 words · ZoomQuiet

蠎加载 167

原文: Import Python Weekly Newsletter - Issue No 167 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 通过 Python 检测共振频率来破坏酒杯 project, sound engineering In today’s post, I walk through the journey of writing a Python program to break wine glasses on demand, by detecting their resonant frequency. Along the way we’ll 3D print a cone, learn about resonant frequencies, and see why I needed an amplifier and compression driver. So, let’s get started. (是也乎: 论优雅的震碎酒杯的姿势… ) 用 Python 实现区块链的实用介绍 blockchain Blockchain is arguably one of the most significant and disruptive technologies that came into existence since the inception of the Internet. It’s the core technology behind Bitcoin and other crypto-currencies that drew a lot of attention in the last few years. As its core, a blockchain is a distributed database that allows direct transactions between two parties without the need of a central authority. This simple yet powerful concept has great implications for various institutions such as banks, governments and marketplaces, just to name a few. Any business or organization that relies on a centralized database as a core competitive advantage can potentially be disrupted by blockchain technology. Python 2.7 终结在 2020年1月1日? 2.7 Curator’s note - Lot of banks and financial companies are not going to upgrade and be happy to pay vendors for security updates. 如何使用 Scikit-Learn 从文本语料库中列出最常用的单词? machine learning, scikit Frequently we want to know which words are the most common from a text corpus sinse we are looking for some patterns. 如何在 Python 中用 Deep Learning 实现 iPhone X 的 FaceID FaceID Reverse engineering iPhone X’s new unlocking mechanism. Python 中并行 IO 操作的内存效率 parallel processing Python allows for several different approaches to parallel processing. The main issue with parallelism is knowing its limitations. We either want to parallelise IO operations or CPU-bound tasks like image processing. The first use case is something we focused on in the recent Python Weekend* and this article provides a summary of what we came up with. Python 3.7 的内置断点 — 快速介绍 core-python Debugging in Python has always felt a bit “awkward” compared with other languages I’ve worked in. Introducing breakpont() (是也乎: 是的, 单步调试是所有 C+++++++ 程序猿思维的依赖… ) Python 编程练习书 book It’s free. (是也乎: 21页的小小书… ) PyPI 支持 Markdown 了- Dustin Ingram pypi I’m really excited to say that as of today, PyPI supports rendering project descriptions from Markdown! This has been a oft-requested feature and after lots of work (including the creation of PEP 566) it is now possible, without translating Markdown to rST or any other hacks! python-itertools core-python itertools.accumulate(iterable[, func]) Python, SQLAlchemy 和 Factory Boy 进行敏捷数据库集成测试 testing So you are interested in testing, aren’t you? Not doing it yet? That’s the right time to start then! In this little example, I’m going to show a possible procedure to easily test your piece of code that interacts with a database. 部署 TensorFlow 模型 - 迈向数据科学 tensorflow Super fast and concise tutorial Stack Overflow 2018 开发者调查- 瞅瞅 Python 怎样. survey This year, over 100,000 developers told us how they learn, build their careers, which tools they’re using, and what they want in a job. (是也乎: 一个字: 非常猛 ) 好物 ~ 包/模块/库/片段… ...

2018-03-19 · 3 min · 1481 words · ZoomQuiet

蠎加载 166

原文: Import Python Weekly Newsletter - Issue No 166 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Django 管理手册 django, admin This is a book about doing things with Django admin. It takes the form of about forty questions and common tasks with Django admin we answer. (是也乎: 叕一本有关 Django 的新书了… 旁的不说, Django 制造了很多作者 ) 又一种创建 REST API 的简易形式 – codeburst flask Learn how to create semantic REST API real quick using Python Flask (是也乎: 叕一个用FLask 来折腾 RESTful 接口的案例, 但是,有专门的 API 生成器了哪 181130 suggest by Alex Nordeen RESTful Web Services Tutorial with Example is is more in-depth and well -> This is how easy it is to create a REST API – codeburst thanx u Alex ;-) ) ...

2018-03-11 · 3 min · 1374 words · ZoomQuiet