Planet Python RSS
208 subscribers
18.6K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
LernerPython blog, from Reuven Lerner: Pandas 3.1 filter: Selecting rows with a pd.col condition

Link: https://lernerpython.com/2026/11/08/pandas-3-1-filter-selecting-rows-with-a-pd-col-condition/


Starting with Python Pandas 3.1, use “filter” to apply a condition to rows. So:
(
df
.loc[ pd.col('passenger_count') > 1 , 'trip_distance']
.mean()
)
can now be (the much slower):
(
df
.fil
Armin Ronacher: AI and Irontown

Link: https://lucumr.pocoo.org/2026/11/9/irontown/

For our last movie night we watched Princess
Mononoke. I remembered loving
that movie when I was younger, but watching it as an adult made me once again
realize how Miyazaki has a way of expressing d
Graham Dumpleton: Muru: HTTPS in development

Link: https://grahamdumpleton.me/posts/2026/11/muru-https-in-development/

Everything I have shown of Muru so far has been served over plain HTTP on port 8080. That is how almost everyone runs a Python web application while developing it, and most of the time it is fine. The
The Python Coding Stack: Generalist vs Specialist in the After AI Era

Link: https://www.thepythoncodingstack.com/p/generalists-specialists-ai

I always struggled to identify whether I was a specialist or a generalist.During my studies, I narrowed my focus at every step. I studied maths, physics, and chemistry at A level, then maths and physi
Python Bytes: #504 Who turned the GIL back on?

Link: https://pythonbytes.fm/episodes/show/504/who-turned-the-gil-back-on

Topics covered in this episode:

PyPI's redesigned project pages now warn when provenance changes
gilguard catches the import that turns the GIL back on
pip 26.3: pylock extras, and pip says plainly t
PyCoder’s Weekly: Issue #760: Type Checkers, Claude Code Hooks, MarkItDown, and More (2026-11-10)

Link: https://pycoders.com/issues/760

#760 – NOVEMBER 10, 2026 View in Browser » How a Python Type Checker Decides a Variable Is Unused A variable is unused only if no read resolves to its binding and in Python that read can sit ins
Graham Dumpleton: Muru: WSGI and ASGI together

Link: https://grahamdumpleton.me/posts/2026/11/muru-wsgi-and-asgi-together/

The previous post was about serving HTTPS from a development run. This time I want to get back to something I mentioned in passing when I first talked about Muru, which is that it isn't limited to WSG
LernerPython blog, from Reuven Lerner: Pandas 3.1 CSV loading: Multi-threaded, but PyArrow is still faster

Link: https://lernerpython.com/2026/11/09/pandas-3-1-csv-loading-multi-threaded-but-pyarrow-is-still-faster/


Reading a CSV into a Python Pandas data frame?
Before version 3.1, loading CSV was single-threaded and slow. My test file took 1.03s.
In 3.1, it’s now multi-threaded and much faster, taking 252 ms.
H
Graham Dumpleton: AI as a lifestyle choice

Link: https://grahamdumpleton.me/posts/2026/11/ai-as-a-lifestyle-choice/

When I wrote about twenty years of mod_wsgi, I mentioned that I was on sabbatical, that AI coding tools had changed what I was prepared to take on, and that I was hoping people would tell me what they
Python GUIs: Keeping Your Main Window Open After Closing a Dialog in PyQt6 — Why your app closes when you dismiss a dialog, and how to fix it

Link: https://www.pythonguis.com/faq/dialogs-question-accept-cancel/


I'm working with dialogs in PyQt6, and when I press either Accept or Cancel, the entire application closes. How can I prevent this?

When you create and display a dialog (for example, using QDialog.e
eGenix.com: PyDDF Python Herbst Sprint 2026

Link: https://www.egenix.com/company/news/PyDDF-Herbst-Sprint-2026

The following text is in German, since we're announcing a Python sprint in Düsseldorf, Germany.

Ankündigung
Python Meeting Herbst Sprint 2026 in
Düsseldorf

Samstag, 14.11.2026, 10:00-18:00 Uhr
Sonnt
Seth Michael Larson: Creating for yourself

Link: https://sethmlarson.dev/creating-for-yourself?utm_campaign=rss

Today marks the 7th anniversary of starting this blog. If you've been following along for a while: thank you! 😊
After observing Volunteer Responsibility Amnesty Day in 2025
and stopping most of my vol
LernerPython blog, from Reuven Lerner: Pandas options: Setting display precision with pd.set_option

Link: https://lernerpython.com/2026/11/10/pandas-options-setting-display-precision-with-pd-set-option/


There are tons of config options in Python Pandas. Set them with pd.set_option:
pd.set_option('display.precision', 2)
Now floats in a series or data frame will have 2 digits after the decimal.
Retrie
LernerPython blog, from Reuven Lerner: Pandas option_context: Temporarily change display settings

Link: https://lernerpython.com/2026/11/11/pandas-option-context-temporarily-change-display-settings/


Want to set an option in Python Pandas, but just temporarily? You can use option_context:
with pd.option_context('display.precision', 2):
print(s/3)
Within the “with” block, the display precision
Graham Dumpleton: Muru: releases, not restarts

Link: https://grahamdumpleton.me/posts/2026/11/muru-releases-not-restarts/

With the previous post I finished with development mode. Something I kept coming back to in those posts was that when muructl run reloads after a change, it isn't restarting anything. It starts a new
PyPy: 20 Years of Pyrolog

Link: https://www.pypy.org/posts/2026/11/20-years-of-pyrolog.html

On November 12, 2006 I did the first surviving commit of my RPython based
Prolog implementation Pyrolog into the PyPy repository. I had been working
on it since spring 2006 already. In that year we we
LernerPython blog, from Reuven Lerner: Announcing: Vibe to valid

Link: https://lernerpython.com/2026/11/12/announcing-vibe-to-valid/

Vibe coding is fun: You can go from an idea to a working app in a weekend.

But if you don’t have a background in software, how can you be sure your app is secure? Tested? Backed up? Ready for real cu