Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python for Beginners: Pandas Replace NaN With 0 in Dataframe

Link: https://www.pythonforbeginners.com/basics/pandas-replace-nan-with-0-in-dataframe

NaN or null values are undesired in any dataset. In this article, we will discuss different ways to replace nan with 0 in a pandas dataframe and series.
We can use three approaches to replace nan with
PyCharm: Webinar: “Reloadium: Faster Python Development with Hot Reloading in PyCharm”

Link: https://blog.jetbrains.com/pycharm/2023/01/webinar-reloadium/

You write your code, restart your server, and wait for the screen to update, but by then, you’re already interrupted. Ever wish you could use the fast development cycle frontends have with hot reloadi
Django Weblog: Django 4.2 alpha 1 released

Link: https://www.djangoproject.com/weblog/2023/jan/17/django-42-alpha-1-released/

Django 4.2 alpha 1 is now available. It represents the first stage in the 4.2
release cycle and is an opportunity for you to try out the changes coming in
Django 4.2.
Django 4.2 has a farrago of new f
Real Python: Python Basics Exercises: File System Operations

Link: https://realpython.com/courses/python-file-system-exercises/

In Python Basics: File System Operations, you learned how to use Python to work with files and folders. As a programmer, you’ll use the pathlib and shutil modules to complete file system operations wi
PyCoder’s Weekly: Issue #560 (Jan. 17, 2023)

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

#560 – JANUARY 17, 2023 View in Browser » PEP 703: Making the GIL Optional in CPython This PEP proposes changes to the CPython build process that would allow you to build a GIL-less interpreter.
Sebastian Witowski: Dictionary Comprehension

Link: https://switowski.com/blog/dictionary-comprehension/

Apart from the list comprehension method, in Python, we also have dictionary comprehension - a little less known but very useful feature. It's a perfect tool for creating a dictionary from an iterable
PyBites: Love the process and identify with your habits

Link: https://pybit.es/articles/love-the-process-and-identify-with-your-habits/

This content appeared as a Pybites email first. If you like it, subscribe to our friends list here to be the first to get this valuable Python / Developer / Mindset related content.
Notice: this is no
PyBites: Special podcast #100: Developer + Mindset Tips for 2023 (and our favorite shows)

Link: https://pybit.es/articles/special-podcast-100-developer-mindset-tips-for-2023-and-our-favorite-shows/

Listen here:

Or watch here:


We’re back with… episode 100!
In this episode we highlight our favorite moments from the show:
– How to Say no!
– Being your Authentic Self with Hannah Kook
– Practical
The Python Coding Blog: Some Best Practices When Writing Python Functions [Intermediate Python Functions Series #7]

Link: https://thepythoncodingbook.com/2023/01/18/best-practices-in-python-functions/

You’ve covered a lot of material in this Intermediate Python Functions Series. In this final article, you’ll read about some best practices in Python functions.
This topic is different from the previo
Python for Beginners: Pandas Map Function to Series in Python

Link: https://www.pythonforbeginners.com/basics/pandas-map-function-to-series-in-python

The pandas’ map() method is used to map dictionaries or functions to pandas series or dataframe columns. In this article, we will discuss different ways to map a function, series, or dictionary to a s
Real Python: Working With Linear Systems in Python With scipy.linalg

Link: https://realpython.com/python-scipy-linalg/

Linear algebra is widely used across a variety of subjects, and you can use it to solve many problems once you organize the information using concepts like vectors and linear equations. In Python, mos
Python Bytes: #319 CSS-Style Queries for... JSON?

Link: https://pythonbytes.fm/episodes/show/319/css-style-queries-for...-json

<a href='https://www.youtube.com/watch?v=rvhdSQvzYaM' style='font-weight: bold;'>Watch on YouTube</a><br>
<br>

<p><strong>About the show</strong></p>

<p>Sponsored by <a href="http://pythonbytes.fm/f
Hynek Schlawack: Why I Like Nox

Link: https://hynek.me/articles/why-i-like-nox/

Ever since I got involved with open-source Python projects, Tox has been vital for testing packages across Python versions (and other factors). However, lately, I’ve been increasingly using Nox for my
Will Kahn-Greene: Socorro: Schema based overhaul of crash ingestion: retrospective (2022)

Link: https://bluesock.org/~willkg/blog/mozilla/socorro_schema_based_overhaul.html

Project

time:
2+ years

impact:

radically reduced risk of data leaks due to misconfigured permissions
centralized and simplified configuration and management of fields
normalization and validation p
Talk Python to Me: #399: Monorepos in Python

Link: https://talkpython.fm/episodes/show/399/monorepos-in-python

Monorepos are contrary to how many of us have been taught to use source control. To start a project or app, the first thing we do is create a git repo for it. This leads to many focused and small repo
Ned Batchelder: Scriv 1.2: create GitHub releases

Link: https://nedbatchelder.com/blog/202301/scriv_12_create_github_releases.html

I’ve been adding to scriv, my changelog management tool.
The latest release is 1.2.0, with improvements to creating GitHub releases.As I mentioned on last
month’s podcast, I think it’s important to ha
Mahmoud Hashemi: Cruising through complex data

Link: http://sedimental.org/cruising_through_data.html

This post is a showcase of data wrangling techniques in Python, using glom.
If you haven't heard of glom, it's a data transformation library and CLI designed for Python.
Think HTML templating, but f
Python⇒Speed: Some reasons to avoid Cython

Link: https://pythonspeed.com/articles/cython-limitations/

If you need to speed up Python, Cython is a very useful tool.
It lets you seamlessly merge Python syntax with calls into C or C++ code, making it easy to write high-performance extensions with rich Py