激萌模块->用表情符编写Python程序

原文: PyCoder's Weekly - Issue #395

PyCoder

  • 191120 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 191120 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄.

Learn how to use threading in your Python programs. You'll see how to create threads, how to coordinate and synchronize them, and how to handle common problems that arise in threading.

(是也乎:

Threading

基础而又不简单的嗯哼... )

How to reduce the memory your DataFrame uses at the time it is initially loaded: by dropping columns, lower-range numerical dtypes, and categoricals.

An interesting summary of discussions around PEP 584 ("Add + and += operators to the built-in dict class").

(是也乎:

因为, 多数项目没法儿迁移...

)

Related discussion on Hacker News.

讨论

Discussions

"To a user, attribute-style access is implicitly assumed to be fast. In contrast, a well-named method can communicate workload: raymondh.family_members vs raymondh.scan_entire_social_graph()"

(是也乎:

简单说: 没必要

)

文章,教程和嗯哼

Articles, Tutorials and Talks

See how to use the development environment included with your Python installation. Python IDLE is a small program that packs a big punch! You'll learn how to use Python IDLE to interact with Python directly, work with Python files, and improve your development workflow.

(是也乎:

IDLE

IDLE 虽好, 可嫑贪杯哪...

这都21世纪了, 为什么要用 IDLE 呢? 有什么想不开的说出来大家开心一下嘛...

Integrated Development and Learning Environment

人家是用来学习的, 开发真心囧的...

)

Python techniques for processing "bigger than RAM" data on a single computer, with minimal setup, and as much as possible using the same libraries you're already using.

How to build secure asynchronous APIs in Python using Korv and AsyncSSH that listen on TCP sockets over SSH sessions.

Learn how to work adeptly with the Pandas GroupBy facility while mastering ways to manipulate, transform, and summarize data. You'll work with real-world datasets and chain GroupBy methods together to get data in an output that suits your purpose.

(是也乎:

Pandas GroupBy

这也是神器之一...

)

How to host Jupyter notebooks on your own server so you can access them anywhere, even with your mobile phone.

(是也乎:

其实, 官方文档都有曰...只是, 还是太重了... Azure 们提供了预嗯哼好的...

)

(是也乎:

为什么这么想不开?

)

(是也乎:

DTrace ~ Solaris 贡献的神器...

)

(是也乎:

Recap

真蟒 率先嗯哼非洲去了...

)

(是也乎:

guido 老爹太皮了, 将一个不起眼的 int() 转换函式嗯哼的这么强大...

)

好物

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

modin_architecture

等等,好象这事儿是 Jupyter 之前要作的事儿哪...

一行完美加速 Pandas 们的计算....

import modin.pandas as pd

)

(是也乎:

等等, 工作流扎堆发布是想抢 oDoo 的生意?

)

(是也乎:

这项目名起的好哪...

)

(是也乎:

adtk

)

(是也乎:

等等... Rubista 叛变来的?

)

(是也乎:

嗯哼? 这个非常正义哪, 沈游侠曰过:

每个程序猿
一生
终将完成自己那个 makefile

make 作为一个通用工具, 已经达到了完美级别, 只是, 很少有大规模宣传而已, 但是, 要论通用/兼容, 真的没什么工具能比过1976年4月,​43年前发布的: GNU make

)

(是也乎:

JAVA 的地盘总归会吞入 Python 腹中

)

(是也乎:

import pandas as 🐼
from numpy import random as 🔀

# Define a dataframe and print it to the console
📋 = 🐼.DataFrame(
    {
        "😀": ["🐼", "🐍", "🦁"],
        "🏷️": ["Panda", "Python", "Lion"],
        "💯": 🔀.randint(2, 5, size=3),
    },
).set_index("😀")
print(📋)

# Do some arithmetic with the dataframe
🔤 = f" Pythonji {' '.join(📋.index)}"
🔢 = 📋.loc["🐍", "💯"] + 📋.loc["🐼", "💯"]
print(🔤 * 🔢)

萌是萌...问题是如何输入哪...

)

📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

第4期已上线, 为期6周;

191124 报名结束
191201 正式开课
200112 按时结束

(是也乎:

网友 𝙰𝚣𝚎𝚛𝚒𝚕 推荐, 为了心灵...

)

是也乎

NN 3837


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:
Zoom.Quiet’s Chaos42 | Substack


关注公众号, 持续获得相关各种嗯哼:
zoomquiet


蟒营®编程思维提高班Python版

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->