Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: Python News: What's New From August 2023

Link: https://realpython.com/python-news-august-2023/

In August 2023, Python 3.12.0rc1 came out! With several exciting features, improvements, and optimizations, this release is only two steps away from the final release scheduled for October. If you wan
Python Morsels: What is recursion?

Link: https://www.pythonmorsels.com/what-is-recursion/

Recursion is when a function calls itself. Loops are usually preferable to recursion, but recursion is excellent for traversing tree-like structures.



Table of contents

Recursive functions call the
Stack Abuse: Guide to Profiling Python Scripts

Link: https://stackabuse.com/guide-to-profiling-python-scripts/

Introduction
Even with a "simple" language like Python, it's not immune to performance issues. As your codebase grows, you may start to notice that certain parts of your code are running slower than e
Stack Abuse: Deleting DataFrame Rows Based on Column Value in Pandas

Link: https://stackabuse.com/deleting-dataframe-rows-based-on-column-value-in-pandas/

Introduction
Data processing is a common task in any data analysis codebase. And in Python, the Pandas library is one of the most popular tools for data analysis, which also provides high-performance,
Real Python: Class Concepts: Object-Oriented Programming in Python

Link: https://realpython.com/courses/python-class-object/

Python includes mechanisms for doing object-oriented programming, where the
data and operations on that data are structured together. The class keyword
is how you create these structures in Python. At
Shannon -jj Behrens: Python: My Favorite Python Tricks for LeetCode Questions

Link: http://www.jjinux.com/2022/08/python-my-favorite-python-tricks-for.html

I've been spending a lot of time practicing on LeetCode recently, so I thought I'd share some of my favorite intermediate-level Python tricks. I'll also cover some newer features of Python you may not
Read the Docs: Read the Docs newsletter - September 2023

Link: https://blog.readthedocs.com/newsletter-september-2023/

News and updates

🚀 We started testing a new flyout menu
as part of our beta test for documentation addons.
The beta test is currently limited to projects using the build.commands
configuration key.
🛣
Stack Abuse: Differences Between iloc and loc in Pandas

Link: https://stackabuse.com/differences-between-iloc-and-loc-in-pandas/

Introduction
When working with data in Python, Pandas is a library that often comes to the rescue, especially when dealing with large datasets. One of the most common tasks you'll be performing with P
Stack Abuse: Get File Name from Path for any OS in Python

Link: https://stackabuse.com/get-file-name-from-path-for-any-os-in-python/

Introduction
One of the challenges you may encounter when working with file paths is extracting the file name from the path, which can vary depending on the operating system and the format of the path
Python Engineering at Microsoft: Announcing: Azure Developers – Python Day

Link: https://devblogs.microsoft.com/python/azure-developers-python-day-2023/

We’re thrilled to announce Azure Developers – Python Day! Join us on September 7th for a full day of online training and discover the latest services and features in Azure designed specifically for Py
PyCoder’s Weekly: Issue #593 (Sept. 5, 2023)

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

#593 – SEPTEMBER 5, 2023 View in Browser » Create a Python Wordle Clone With Rich In this step-by-step project, you’ll build your own Wordle clone with Python. Your game will run in the terminal
Django Weblog: 2023 Django Developers Survey

Link: https://www.djangoproject.com/weblog/2023/sep/05/2023-django-developers-survey/

The DSF is once again partnering with JetBrains to run the 2023 Django Developers Survey.
Please take a moment to fill it out. The survey is an important metric of Django usage and helps guide future
Python Insider: Python 3.12.0 release candidate 2 now available

Link: https://pythoninsider.blogspot.com/2023/09/python-3120-release-candidate-2-now.html

I'm pleased to announce the release of Python 3.12 release candidate 2.https://www.python.org/downloads/release/python-3120rc2/ This is the second release candidate of Python 3.12.0This release, 3.12.
Python Bytes: #351 A Python Empire (or MPIRE?)

Link: https://pythonbytes.fm/episodes/show/351/a-python-empire-or-mpire

<strong>Topics covered in this episode:</strong><br>

<ul>
<li><a href="https://github.com/sybrenjansen/mpire"><strong>mpire</strong></a></li>
<li><a href="https://pypi.org/project/mopup/"><strong>mo
Stack Abuse: Using cla(), clf(), and close() to Clear a Plot in Matplotlib

Link: https://stackabuse.com/using-cla-clf-and-close-to-clear-a-plot-in-matplotlib/

Introduction
In Matplotlib, there are a number of ways to close plots, including the functions cla(), clf(), and close(). These functions are helpful tools for managing our plots. But when should we u
Real Python: Generate Beautiful QR Codes With Python

Link: https://realpython.com/python-generate-qr-code/

From restaurant e-menus to airline boarding passes, QR codes have numerous applications that impact your day-to-day life and enrich the user’s experience. Wouldn’t it be great to make them look good,
Stack Abuse: The 'b' Prefix in Python String Literals

Link: https://stackabuse.com/the-b-prefix-in-python-string-literals/

Introduction
In Python, you may have come across a string literal prefixed with the 'b' character and wondered what it means. This Byte aims to shed light on this feature of Python strings, its connec
Django Weblog: Last call for DjangoCon US Hotel Reservations

Link: https://www.djangoproject.com/weblog/2023/sep/06/last-call-for-djangocon-us-hotel-reservations/


DjangoCon US 2023 is just about here!
While the conference isn’t until Oct 16-20, we’re sharing this now
because discounted hotel rooms are filling up fast and will go away
entirely on September 15th
Daniel Roy Greenfeld: TIL: pytest with breakpoints

Link: https://daniel.feldroy.com/posts/til-2023-09-pytest-with-breakpoints

To inject a breakpoint into a failing pytest run, add --pdb to your pytest command:
py.test --pdb

This will drop you into a pdb session at the point of failure. You can then inspect the state of the
Stack Abuse: Fixing "ValueError: Truth Value of a Series is Ambiguous" Error in Pandas

Link: https://stackabuse.com/fixing-valueerror-truth-value-of-a-series-is-ambiguous-error-in-pandas/

Introduction
Sometimes when working with Pandas in Python, you might encounter an error message saying "Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()". This