蠎加载 142

原文: Import Python Weekly Newsletter - Issue No 142 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… Python 3.7 有什么新的? new release This article explains the new features in Python 3.7, compared to 3.6. (是也乎: 因为老爹没有公司任务了, 所以,开始发力社区版本? ) 如何用 Python 生成 FiveThirtyEight 图表? graph, FiveThirtyEight If you read data science articles, you may have already stumbled upon FiveThirtyEight’s content. Naturally, you were impressed by their awesome visualizations. You wanted to make your own awesome visualizations and so asked Quora and Reddit how to do it. You received some answers, but they were rather vague. You still can’t get the graphs done yourself. In this post, we’ll help you. Using Python’s matplotlib and pandas, we’ll see that it’s rather easy to replicate the core parts of any FiveThirtyEight (FTE) visualization. (是也乎: FiveThirtyEight 原来是家公司,因为精美的可视化作品, 而变成了专门的 FTE 风格… ) 在 Unix 环境中配置 Python (用 pyenv 以及 direnv) environment, pyenv This post is about how to set up multiple Python versions and environments on a development machine (and why I don’t use conda). 在 Docker 中用 Jupyter Notebook 跑 PySpark – Suci Lin – Medium docker, spark, jypyter It is much much easier to run PySpark with docker now, especially using an image from the repository of Jupyter. When you just want to try or learn Python. it is very convenient to use Jupyter Notebook for an interactive developing environment. The same reason makes me want to run Spark through PySpark in Jupyter Notenook. (是也乎: 嚓, 这热点组合的… ) Surgical 时间追踪在 Python performance How to profile your python code to improve performance? 用卷积去噪在基于内容的图像检索中使自动编码器 machine learning, image processing Content based image retrieval (CBIR) systems enable to find similar images to a query image among an image dataset. The most famous CBIR system is the search per image feature of Google search. This article is a keras tutorial that demonstrates how to create a CBIR system on MNIST dataset. Our CBIR system will be based on a convolutional denoising autoencoder. It is a class of unsupervised deep learning algorithms. (是也乎: 基于内容的图像搜索… ) itertools.count code snippets You need to iterate over an infinite series of numbers, breaking when a condition is met. 如何用 Python 监听 S&P 500 股票 scraping, codesnippets I thought it would be nice to show how one can leverage Python’s Pandas library to get stock ticker symbols from Wikipedia. Equality 和 Identity tweet (是也乎: Equality vs Identity: »> a = [“x”, “y”] »> b = a »> c = [“x”, “y”] »> a == b == c True »> a is b True »> a is c False 所以, 这个 推 关注时间长了就怀疑人生了… 不过, logo 很萌… ) ...

2017-09-16 · 4 min · 1972 words · ZoomQuiet

蠎加载 141

原文: Import Python Weekly Newsletter - Issue No 141 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… GoCD - 开源续发服务器 GoCD, advert GoCD is a continuous delivery tool specialising in advanced workflow modeling and dependency management. It lets you track a change from commit to deploy at a glance, providing superior visibility into your workflow. It’s open source, free to use and download. (是也乎: 对 CI 的进一步提升, 持续发送? ) Python 令人难以置信的成长 core-python In this post, we’ll explore the extraordinary growth of the Python programming language in the last five years, as seen by Stack Overflow traffic within high-income countries. The term “fastest-growing” can be hard to define precisely, but we make the case that Python has a solid claim to being the fastest-growing major programming language. (是也乎: 简单的说, 只是撞到了数据科学的大热点… ) DjangoCon US 视频发布了 videos Django 完整初学者指南 - 第一部分 django I’m starting today a new tutorial series about the Django fundamentals. It’s a complete beginner’s guide to start learning Django. The material is divided into seven parts. We’re going to explore all the basic concepts in great detail, from installation, preparation of the development environment, models, views, templates, URLs to more advanced topics such as migrations, testing, and deployment. (是也乎: 叕一个 Dj 教程… ) hatch: 现代化的 项目,包以及虚拟环境管理器 package manager Hatch is a productivity tool designed to make your workflow easier and more efficient, while also reducing the number of other tools you need to know. It aims to make the 90% use cases as pleasant as possible. (是也乎: /^/^ || O| / /~ _/ _|****/ _____ `\ \ | | / / / / / / \ / / \ / / —- \ / / -~ ~- | | ( ( -~ – ~- / | \ ~--~ -~ ~- ~--~ / -_ _- -_ _- ~–_-~ ~-__-~ 简单的说: 简化一堆 CLI 工具的 CLI 工具. ) selectors select Provide platform-independent abstractions for I/O multiplexing based on the select module. (是也乎: PyMOTW 已经坚持了有快10年了…可见 Python 内建模块的持续优化中故事太多了… ) 用 PyCharm 嗯哼 Reddit reddit Run reddit on your local machine with PyCharm to help you through the way. 从 Scratch 嗯哼的深度学习 II: Perceptrons – deep ideas deep learning This is part 2 of a series of tutorials, in which we develop the mathematical and algorithmic underpinnings of deep neural networks from scratch and implement our own neural network library in Python, mimicing the TensorFlow API. 性能分析: Goroutine 和 Python 的 Coroutine python, go I made 1000 HTTP requests using Goroutines and Python’s Coroutines. Do check out Go Programming Language Newsletter http://importgolang.com to keep track of Go ecosystem. 高级 Pillow 第二部分 image processing Wow Pillow is powerful. Python 中的 Threads vs Processes Threads, processes Beginner’s guide to parallel programming. 都柏林自行车站的应用模式 data science 如何建立特朗普的情感跟踪 machine learning, sentiment analysis Analyzing over a thousand tweets a minute PyTorch vs TensorFlow?—?挖掘差异 machine learning In this post I want to explore some of the key similarities and differences between two popular deep learning frameworks: PyTorch and TensorFlow. Why those two and not the others? There are many deep learning frameworks and many of them are viable tools, I chose those two just because I was interested in comparing them specifically. (是也乎: 图样图森破, 其实最大的差异就是爹不同哪… ) Smarkets 的数据驱动营销 ETL I was introduce to Luigi by my friend Shanmuganandh. It has since become an important tool in my Python toolkit. Do check it out. 重新设计 Python 的命名元组 tuples Deficiencies in the startup time for Python, along with the collections.namedtuple() data structure being identified as part of the problem, led Guido van Rossum to decree that named tuples should be optimized. That immediately set off a mini-storm of thoughts about the data structure and how it might be redesigned in the original python-dev thread, but Van Rossum directed participants over to python-ideas, where a number of alternatives were discussed. They ranged from straightforward tweaks to address the most pressing performance problems to elevating named tuples to be a new top-level data structure—joining regular tuples, lists, sets, dictionaries, and so on. (是也乎: 论一个 EPE 的养成术 ) 不过载库的 Python 学习姿势 education (是也乎: 简单的说, 那是不可能的… ) How Python does Unicode? unicode (是也乎: 说多了都是泪…. ) btcpy 发布: 全功能的比特币库 bitcoin With the aim of making Bitcoin products development easier and more effective, at Chainside we decided to develop btcpy, a new Python 3 SegWit-compliant library, which is focused on providing a simple interface to parse and create complex Bitcoin scripts. Serverless Thrift APIs in Python on AWS Lambda aws lambda This blog post shows a basic example of a Serverless Thrift API with Python for AWS Lambda and AWS API Gateway. python 奇招集锦 core-python Python, being awesome by design high-level and interpreter-based programming language, provides us with many features for the programmer’s comfort. But sometimes, the outcomes of a Python snippet may not seem obvious to a regular user at first sight. Here is a fun project attempting to collect such classic and tricky examples of unexpected behaviors in Python and discuss what exactly is happening under the hood! (是也乎: 简单的说, 嫑用… <- WTFPL 2.0 这个许可证很屌… ) Monkey-patching is Bad monkey patching Monkey-patching software is generally frowned upon, but there is a time and a place for everything, even monkey-patching. (是也乎: 🐒补刚刚在嗯哼说赞, 马上就反转了… ) Serving 1x1 pixels from AWS Lambda endpoints aws lambda A no-headache guide to serve 1x1 pixels in a serverless, Pythonic world. “The Zen of Python” 简析 zen of python The Zen of Python?—?is a list of 19 general truths for Python design principles. Apparently there is a 20th, but I’m focusing on understanding the written list before speculating on what the Easter Egg could be. Written below is a brief analysis of each rule, taken in large part from an article I read on Quora.com. Below the list is the link for that. (是也乎: 值得长久嗯哼的文本, 只是随着技术的进步落实到代码上也各有不同… ) Python 玑珠 #9: itertools.chain itertools This is a daily series called Python Gems. Each short posts covers a detail, feature or application of the python language that you can use to increase your codes readability while decreasing its length. (是也乎: 一个系列, 收集各种简洁代码的思路 ) Python 魔法方法和 getattr core-python A primer on Magic Methods 好物 ~ 包/模块/库/片段… ...

2017-09-08 · 5 min · 2260 words · ZoomQuiet

蠎加载 140

原文: Import Python Weekly Newsletter - Issue No 140 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… EuroSciPy 视频 conference, videos Being uploaded at the time of sending the newsletter. (是也乎: Python 大会的趋势就是专业化, 应该马上有 区块链大会了… ) 节约 Python 的启动时间 core-python The startup time for the Python interpreter has been discussed by the core developers and others numerous times over the years; optimization efforts are made periodically as well. Startup time can dominate the execution time of command-line programs written in Python, especially if they import a lot of other modules. Python startup time is worse than some other scripting languages and more recent versions of the language are taking more than twice as long to start up when compared to earlier versions (e.g. 3.7 versus 2.7). (是也乎: 这才是核心技术的讨论区哪… ) Python 数据科学手册 - 开放嗯哼 data science This website contains the full text of the Python Data Science Handbook by Jake VanderPlas; the content is available on GitHub in the form of Jupyter notebooks. (是也乎: 叕一个 收集各种数据科学相关案例的 ipynb 图书了… ) cachelper caching Useful cache helpers in one package. (是也乎: 人性化缓存到各种后端中… ) 预测 Ames, Iowa 的房价 data science Regression, Regularization, Residuals and Feature Selection Asyncio Coroutine 模式: 错误和取消 asyncio In the first part of this series we concluded that asyncio is awesome, coroutines are awesome and our code is awesome. But sometimes the outside world is not as awesome and we have to deal with it. Now, for this second part of the series, I’ll run over the options asyncio gives us to handle errors when using these patterns as well as cancelling tasks so as to make our asynchronous systems robust and performant. TensorFlow 中的高级 API tensorflow TensorFlow is providing some higher-level constructs itself, and some new ones were introduced in the latest 1.3 version. In this blog, we’ll look at an example using some of these new higher-level constructs, including Estimator, Experiment, and Dataset. (是也乎: 简单的说, 还有更多根本没有释放出来… ) 计算机视觉中的 Robust Lane Finding 技术 machine learning, image processing Lane identification system for camera based systems. Python Gems #5: 无声功能链接 core-python Meme 搜索使用 pretrained word2vec machine learning We show how to build a very basic, yet not bad, meme retrieval system using pretrained word embeddings. 用Python监控道路交通 machine learning, image processing 时间序列监听 库s time series This curated list contains python packages for time series analysis. 好物 ~ 包/模块/库/片段… ...

2017-09-01 · 3 min · 1260 words · ZoomQuiet

蠎加载 139

原文: Import Python Weekly Newsletter - Issue No 139 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 该读 ~ 文章, Blog, 教程… 用 flit 轻松发布你的包 pypi Flit is a simple way to Package and deploy Python projects on PyPI, Flit makes it easier by using a simple flit.ini file and assumes common defaults to save your time and typing. I knew about Flit when I was taking a look at Mariatta Wijaya game called Tic Tac Taco Pizza and noticed that she used flit to deploy the game, so we also asked her the reason for using this on the podcast we recorded so I decided to try porting my projects to Flit. 用 Python 进行研究 - edX 课程 ( Harvard University ) course, mooc This course bridges the gap between introductory and advanced courses in Python. While there are many excellent introductory Python courses available, most typically do not go deep enough for you to apply your Python skills to research projects. In this course, after first reviewing the basics of Python 3, we learn about tools commonly used in research settings. Python 的 sys.getrefcount() 趣味 core-python Python has a function called sys.getrefcount() that tells you the reference count of an object. 用机器学习来预测获胜团队 machine learning Can we predict the outcome of a football game given a dataset of past games? That’s the question that we’ll answer in this episode by using the scikit-learn machine learning library as our predictive tool. 用 Docker 组合 Travis CI 进行持续集成的姿势 docker, CI Part 2 of 3: The “Docker repo” pattern. Note - Very informative and detailed article for those looking to bring CI + docker into their workflow. (是也乎: 城会玩 -> ) 使用 Python 分析 Cryptocurrency Markets cryptocurrency How do Bitcoin markets behave? What are the causes of the sudden spikes and dips in cryptocurrency values? Are the markets for different altcoins inseparably linked or largely independent? How can we predict what will happen next? (是也乎: 数字货币交易市场越来越兴旺, 而且数据是公开的, 值得分析 ) 用 Python Flask, Pandas 以及 MongoDB 折腾出分析仪表盘 mongodb, pandas, flask Analyzing your sensor data has always been a daunting task and putting your data in the Dashboard has never been an easy task. In this article, we will see how using Python Flask, Pandas and MongoDB you can develop an Analytical Dashboard over a weekend. (是也乎: 有用, 但还是丑… ) 拟态 testing, mocking Mimesis is a fast and easy to use library for Python, which helps generate mock data for a variety of purposes (see “Data providers”) in a variety of languages (see “Locales”). This data can be particularly useful during software development and testing. The library was written with the use of tools from the standard Python library, and therefore, it does not have any side dependencies. (是也乎: 不是 erlang 那个内置 DB 哪… 能模拟各种语言数据集的工具… 好象支持中文? ) 纤程, 线程和进程 parallel processing Python 列表的实现 core-python USER-USER 协同过滤推荐系统 recommendation engine we will start building a system that uses the profile of the given user and provide recommendation completely based on that user’s preference and liking. Gaussian Naive Bayes - numpy machine learning Bayes Theorem describes the probability of an event, based on prior knowledge of conditions be related of conditions to the event. So it basically fits perfectly for machine learning, because that is exactly what machine learning does: making predictions for the future based on prior experience. (是也乎: 叕一则科普文… ) Python Matplotlib Style - 2.0 matpoltlib Matplotlib is a great and very capable plotting library for Python. (是也乎: 可惜一直没有解决互联网时代的直接输出需求… ) 如何使用 Python 删除或修改 CSV 数据集中的空值 code snippets, csv Data sets are not perfect. Sometimes they end up with invalid, corrupt, or missing values. For the project I was working on, I could not have any values that are null or empty. This How-To will walk you through writing a simple Python script to see if your data set has null or empty values, and if so, it will propose two options for how to modify your data. 如何使用 Cloudinary 和 Python 加速工艺术网站的加载 cloudinary pip 黑魔法 ~ 一键升级所有 Python 模块 pip 使用 PySpark Dataframe – Zhiqiang Zhong – Medium pyspark, dataframes I will share you about how using Dataframe of PySpark as Dataframe of Python. 如何跨越 CPython 解释器 cpython I will outline the process I typically follow to dig deeper into aspects of the python programming language I am curious about. Python: Guidelines & Code Style coding standards This document is intended to Storepilots employees, but worth the read. http(s) session recording 技巧 http pep 551 PEP This PEP describes additions to the Python API and specific behaviors for the CPython implementation that make actions taken by the Python runtime visible to security and auditing tools. The goals in order of increasing importance are to prevent malicious use of Python, to detect and report on malicious use, and most importantly to detect attempts to bypass detection. Most of the responsibility for implementation is required from users, who must customize and build Python for their own environment. (是也乎: 有关运行安全的嗯哼 ) What is self healing software? humor 用 CFFI 将 Python 链接到 C c 让我们在 Python 中同步线程 (是也乎: 让我们荡起双桨 ) Nuitka - Python Complier compiler Nuitka is a Python compiler. It’s fully compatible with Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, and 3.6. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module. (是也乎: 又一个 编译器, 可以递归的将 python 脚本以及依赖库编译成单一 .exe 但是,类似 Qt/OpenCV/numpy/pandas/… 巨型模块, 就别想了… ) Python 加密作弊书 cryptocurrency pyheatmagic ipython IPython magic command to profile and view your python code as a heat map using py-heat. (是也乎: 自动分析代码执行热度的插件… ) 好物 ~ 包/模块/库/片段… ...

2017-08-25 · 5 min · 2145 words · ZoomQuiet