Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
TechBeamers Python: Python Dictionary to JSON

Link: https://www.techbeamers.com/python-dictionary-to-json/

Dictionaries are data structures that store key-value pairs. Often, in Python programs, you need to convert these dictionaries into JSON (JavaScript Object Notation) format sometimes for data storage,
TechBeamers Python: Python Sorting a Dictionary

Link: https://www.techbeamers.com/python-sorting-dictionary/

Sorting a dictionary in Python allows you to organize its key-value pairs based on certain criteria. It includes sorting by keys or values, in ascending or descending order. Python provides several me
TypeThePipe: How to upper strip in Python

Link: https://typethepipe.com/vizs-and-tips/upper-strip-python/

pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.source
Mike Driscoll: PyDev of the Week: Pradeep Kumar Srinivasan

Link: https://www.blog.pythonlibrary.org/2023/10/09/pydev-of-the-week-pradeep-kumar-srinivasan/

This week, we welcome Pradeep Kumar Srinivasan as our PyDev of the Week! Pradeep works on the Pyre package, which is a performant type-checker for Python as well as the Pysa security tool.
You can som
Real Python: Python News: What's New From September 2023

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

As the leaves turned yellow and fall set in, the Python community prepared for the release of Python 3.12 in early October. This new version of the most popular programming language brings several exc
TypeThePipe: Sort in Python Polars. Arrange your DataFrames and Series

Link: https://typethepipe.com/vizs-and-tips/python-polars-sort/

pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.source
EuroPython Society: EPS Board 2023-2024

Link: https://www.europython-society.org/eps-board-2023-2024/

We’re happy to announce our new board for the next term 2023-2024:Alexander HendorfAnders Hammarquist (Treasurer)Artem Kisloskiy (Vice Chair) Artur Czepiel (Chair)Laís CarvalhoSangharshanan Veera Seba
Real Python: Using Python's min() and max()

Link: https://realpython.com/courses/python-min-max/

Python’s built-in min() and max() functions come in handy when you need to find the smallest and largest values in an iterable or in a series of regular arguments. Even though these might seem like fa
Stack Abuse: Fix "ModuleNotFoundError: No module named 'pip'" in Python

Link: https://stackabuse.com/fix-modulenotfounderror-no-module-named-pip-in-python/

Introduction
As a Python developer, you may have encountered the error ModuleNotFoundError: No module named 'pip'. This error is typically thrown when you attempt to use pip, Python's package installe
PyCoder’s Weekly: Issue #598 (Oct. 10, 2023)

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

#598 – OCTOBER 10, 2023 View in Browser » Python’s tuple Data Type: A Deep Dive With Examples In Python, a tuple is a built-in data type that allows you to create immutable sequences of values.
Python Bytes: #356 Ripping from PyPY

Link: https://pythonbytes.fm/episodes/show/356/ripping-from-pypy

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

<ul>
<li><a href="https://www.psycopg.org/psycopg3/"><strong>Psycopg 3</strong></a></li>
<li><a href="https://github.com/konradhalas/dacite"><str
PyBites: Using Python in Excel with PyXLL

Link: https://pybit.es/articles/using-python-in-excel-with-pyxll/

In this podcast episode we talk with Tony Roberts, creator of PyXLL (pronounced “pixel”). 
Listen here:

Also released on our YouTube channel:


We dive into the backstory of this Python Excel Add-in,
Daniel Roy Greenfeld: TIL: Capture stdout & stderr with pytest

Link: https://daniel.feldroy.com/posts/til-2023-10-capture-stdout-stderr-with-pytest

I wish I knew this earlier, but I know it now thanks to Cody Antunez. Here it is:
import sys

def test_myoutput(capsys): # or use "capfd" for fd-level

# Write some text
print("hello")
sy
TypeThePipe: Mastering Python Polars json manipulation. Do it in an easy and robust way!

Link: https://typethepipe.com/vizs-and-tips/python-polars-json-manipulation/

pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.source
PyCharm: 2023 and Beyond: The Future of Data Science Told By 79,306 People

Link: https://blog.jetbrains.com/pycharm/2023/10/future-of-data-science/

Data science has been the hottest thing for a while now, but it still continues to be a major talking point even today. In fact, according to the U.S. Bureau of Labor Statistics, it’s estimated that a
Real Python: How to Sort Unicode Strings Alphabetically in Python

Link: https://realpython.com/python-sort-unicode-strings/

Sorting strings in Python is something that you can almost take for granted if you do it all the time. Yet, it can become surprisingly tricky considering all the edge cases lurking in the vast Unicode
Python Anywhere: Outage report 9 October 2023

Link: https://blog.pythonanywhere.com/209/

tl;dr
On 2023-10-09 we had an unplanned outage. While we were preparing our systems for a scheduled system update the
following morning, we faced some issues. These in themselves would not have caused
John Cook: Python code for means

Link: https://www.johndcook.com/blog/2023/10/11/python-agm/

The last couple article have looked at various kinds of mean. The Python code for four of these means is trivial:
gm = lambda a, b: (a*b)**0.5
am = lambda a, b: (a + b)/2
hm = lambda a, b: 2*a*b/(a