pythonista-weekly : Pyw 485

欢迎阅读《pythonista周刊》第485期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-485 翻译:Dustyposa 新闻 PyCon US 2021 Registration Now Open 文章、教程与话题 在Cython中实现C++虚函数 本文介绍了两种从 Python 中使用 C++ 代码的策略,需要在 C++ 抽象类中实现虚函数。 利用Reddit文本数据进行交易的情感分析 一篇关于利用 r/wallstreetbets 的数据进行交易情感分析的帖子。 Automating My Job with GPT-3 使用 GPT-3 生成数据库就绪的 SQL 来回答业务问题。 Python Pandas For Your Grandpa 关于 Python Pandas 的免费课程。 使用Python检测USB驱动器在Windows上的插入和移除 监视 Windows 上的新驱动器并执行任务。 意外的发现,释放了20GB的未使用索引空间 如何在不丢弃索引或删除数据的情况下释放空间。 Property-Based Testing with hypothesis, and associated use cases 这篇文章介绍了基于属性的测试这一概念,并描述了一些可以开始将PBT集成到测试套件中的方法。 用马尔科夫链生成文本 通过从头开始构建马尔科夫链,生成随机但熟悉的文本。 Analyze your Peloton workout stats with real-time updates (template and scripts) 关于如何将 Peloton 锻炼统计数据同步并分析到 Coda 中的自定义仪表盘的教程。通过谷歌应用脚本或谷歌云上的无服务器功能进行同步。 Database Constraints in Django 了解 Django 支持的各种数据库约束,以确保数据的完整性。 Novice to Advanced RegEx in Less-than 30 Minutes in Python 一个完整的教程,涵盖了你需要知道的关于正则表达式的一切–对于任何学习代码的人来说都是必不可少的,对于任何对自然语言处理感兴趣的人来说更是如此。 Why does my memory usage explode when concatenating dataframes? Storing string columns as categories can result in massive memory savings when working with large dataframes. However, those savings can surprisingly disappear when we start concatenating dataframes. 使用Python从头开始解释神经网络。 Creating an Attendance Tracker Using Slack and Google Sheets Messing around with the Python shell ...

2021-02-06 · 3 min · 1286 words · ZoomQuiet

Issue 458

老爹和爱豆在 Twitter 上的闲聊… 原文: PyCoder’s Weekly - Issue #458 210203 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210203 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 在 Pandas 查找和修复意外的内存占用 MARTIN JONES • Shared by Martin Jones Storing string columns as categories can result in massive memory savings when working with large dataframes in pandas. However, those savings can surprisingly disappear when you start concatenating dataframes. In this article, you’ll learn why, and find out how to fix it. (是也乎: 这应该也是门生意了… ) Constant Folding 在 Python ARPIT BHAYANI Every programming language aims to be performant and Python is no exception. Take a dive deep into Python internals and find out how Python makes its interpreter performant using a technique called constant folding. (是也乎: 叕一种性能技巧的 Pythonic 化 ) 用 Datadog APM 可视化/优化 Python 应用程序性能 DATADOG sponsor Datadog APM generates detailed flame graphs from real requests so you can see which services or calls are generating errors or contributing to overall latency. Dive deeper into your production code with an always-on code profiler to troubleshoot. Start monitoring your applications with a free trial → (是也乎: 用了都说好. ) Pyston 2.1 超越 Python 3.8/3.9 性能 MICHAEL LARABEL Pyston is an alternative Python interpreter. According to these benchmarks, it’s significantly outperforming Python 3.8 and 3.9. (是也乎: 亲侄儿, 也放弃 Py2 了? ) Python 和 NumPy 实现随机梯度下降算法 REAL PYTHON Learn what the stochastic gradient descent algorithm is, how it works, and how to implement it with Python and NumPy. DjangoCon Europe 2021 发布 DJANGO SOFTWARE FOUNDATION spaCy v3.0 发布 EXPLOSION.AI NumPy 1.20.0 发布 NUMPY.ORG (是也乎: 说这是史上最大一次合并, 改变了非常多的特性, 并放弃了对 Py3.6 以下的支持. ) 探讨/吐糟 Discussions ...

2021-02-03 · 4 min · 1769 words · ZoomQuiet

pythonista-weekly : Pyw 484

欢迎阅读《pythonista周刊》第484期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-484 翻译:Dustyposa 新闻 PIP is dropping support for Python 2 文章、教程与话题 用机器学习预测硬盘故障 我们都有过硬盘故障的经历,往往就像开机后发现无法访问一堆文件一样突然。这不是一个有趣的经历。尤其是当你有一整个数据中心的硬盘,这些硬盘对维持你的业务运行都很重要时,就更不好玩了。如果我们能够预测其中一个驱动器何时会出现故障,并在数据丢失之前抢先更换硬件,那会怎样? Algpt2 Part 2 我是如何(几乎)复制 OpenAI 的 GPT-2(124M版) 12 requests per second A realistic look at Python web frameworks. 为什么我们不使用python原生的enum Python 原生 enum 对于它们的设计目的来说是很好的,但我们发现它们是有限的,不允许你以一种合理的方式来增长复杂性和使用量。 在Python中使用环境变量进行应用程序配置 学习有经验的开发人员如何在 Python 中使用环境变量,包括管理默认值和类型转换。 SVM分类器和RBF内核–如何在Python中做出更好的模型 完整地解释了支持向量机(SVM)和径向基函数 (RBF)核的内部工作原理。 Raspberry Pi & Python Powered Tank This is part one of a two-part series and handles all of the hardware and wiring and a Python script for test firing the engines. Learn Python Data Analytics By Example: NYC Parking Violations 一个有趣的项目和详细的数据分析步骤演练,帮助你学习 Python、pandas和matplotlib。 How to Develop a Neural Net for Predicting Car Insurance Payout In this tutorial, you will discover how to develop a Multilayer Perceptron neural network model for the Swedish car insurance regression dataset. 25 IPython Tips for Your Next Advent of Code Python’s type checking renaissance 用Raspberry Pi和Python构建一个智能中央供暖系统 Unravelling for statements ...

2021-01-29 · 3 min · 1158 words · ZoomQuiet

Issue 457

pip 不再支持 Python 2 原文: PyCoder’s Weekly - Issue #457 210127 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210127 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 解析 Python 语句 BRETT CANNON Learn how Python’s for statement works behind the scenes by diving into the bytecode and CPython source code. (是也乎: 老爹早已设计好了一切 ) 您真的不需要 Virtualenv FROST MING • Shared by Frost Ming Virtual environments are a staple of the Python world, but they aren’t without their drawbacks. Learn why virtual environments aren’t always the right solutions and how to get around them without sacrificing dependency isolation. (是也乎: PEP 582 将 Python 拉入 NPM 黑洞世界的提案… ) ...

2021-01-27 · 4 min · 1750 words · ZoomQuiet