Planet Python RSS
215 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Stack Abuse: Solving "NameError: name 'random' is not defined" in Python

Link: https://stackabuse.com/solving-random-is-not-defined-nameerror-in-python/

Introduction
In Python, one of the most common errors that beginners and even some seasoned programmers encounter is the NameError: name 'random' is not defined. This error often pops up when trying t
Real Python: Click and Python: Build Extensible and Composable CLI Apps

Link: https://realpython.com/python-click/

You can use the Click library to quickly provide your Python automation and tooling scripts with an extensible, composable, and user-friendly command-line interface (CLI). Whether you’re a developer,
Stack Abuse: Fixing "NameError: name 'df'/'pd' is not defined" in Python

Link: https://stackabuse.com/fixing-nameerror-name-df-pd-is-not-defined-in-python/

Introduction
When using Pandas in Python, a library for data manipulation and analysis, you might have encountered an error like "NameError: name 'df'/'pd' is not defined". In this Byte, we'll show wh
Test and Code: 206: TDD in Context

Link: https://testandcode.com/episodes/206-tdd-in-context

TDD (Test Driven Development) started from Test First Programming, and has been around at least since the 90's. However, software tools and available CI systems have changed quite a bit since then. Ma
Stack Abuse: Incompatible Type Comparisons in Python

Link: https://stackabuse.com/incompatible-type-comparisons-in-python/

Introduction
In Python, we often encounter a variety of errors and exceptions while writing or executing a script. A very common error, especially for beginners, is TypeError: '<' not supported betwee
Stack Abuse: Get All Object Attributes in Python

Link: https://stackabuse.com/get-all-object-attributes-in-python/

Introduction
In Python, everything is an object - from integers and strings to classes and functions. This may seem odd, especially for primitive types like numbers, but even those have attributes, li
Stack Abuse: Creating a Directory and its Parent Directories in Python

Link: https://stackabuse.com/creating-a-directory-and-its-parent-directories-in-python/

Introduction
In Python, we often need to interact with the file system, whether it's reading files, writing to them, or creating directories. This Byte will focus on how to create directories in Pytho
PyBites: Harnessing Downtime: The Power of Disconnecting

Link: https://pybit.es/articles/harnessing-downtime-the-power-of-disconnecting/

In this episode of the Pybites podcast, we dive into the power of stepping back from the daily grind, whether that’s coding or career-focused
Watch here:


Or listen here:

Drawing insights from Juli
PyBites: Make Each Line Count, Keeping Things Simple in Python

Link: https://pybit.es/articles/make-each-line-count-keeping-things-simple-in-python/

A challenge in software development is to keep things simple
For your code to not grow overly complex over time

Simple is better than complex.Complex is better than complicated.
Zen of Python
Simp
EuroPython Society: EPS 2023 General Assembly - Call for Board Candidates

Link: https://www.europython-society.org/eps2023-ga-call-for-board-candidates/

It feels like yesterday that many of us were together in Prague or online for EuroPython 2023. Each year, the current board of the EuroPython Society (EPS) holds a General Assembly (GA). It is a preci
PyCharm: PyCharm 2023.2.1 Is Out!

Link: https://blog.jetbrains.com/pycharm/2023/08/pycharm-2023-2-1-is-out/

PyCharm 2023.2.1, the first bug-fix update for PyCharm 2023.2, is now available!
You can update to v2023.2.1 by using the Toolbox App, installing it right from the IDE, or downloading it from our webs
Python Insider: Python 3.11.5, 3.10.13, 3.9.18, and 3.8.18 is now available

Link: https://pythoninsider.blogspot.com/2023/08/python-3115-31013-3918-and-3818-is-now.html

There’s security content in the releases, let’s dive right in.
gh-108310: Fixed an issue where instances of ssl.SSLSocket
were vulnerable to a bypass of the TLS handshake and included
protections (l
Real Python: The Real Python Podcast – Episode #169: Improving Classification Models With XGBoost

Link: https://realpython.com/podcasts/rpp/169/

How can you improve a classification model while avoiding overfitting? Once you have a model, what tools can you use to explain it to others? This week on the show, we talk with author and Python trai
Stack Abuse: The Python 3 Equivalent of SimpleHTTPServer

Link: https://stackabuse.com/the-python-3-equivalent-of-simplehttpserver/

Introduction
In this article, we'll explore Python's built-in HTTP servers. We will discuss the SimpleHTTPServer module, its Python 3 equivalent, and how to run these servers via the command line. Thi
PyCharm: Getting Started in Data Science: EuroPython 2023 Follow-Up

Link: https://blog.jetbrains.com/pycharm/2023/08/getting-started-in-data-science-europython-2023-follow-up/

One of my favorite parts of my job as a developer advocate is being able to help people get started in data science. I still remember when I made the transition from academia to data science almost 8
Stack Abuse: How to Reverse a String in Python

Link: https://stackabuse.com/how-to-reverse-a-string-in-python/

Introduction
Python is a versatile and powerful language with a wide array of built-in functions and libraries. Whether its for a coding interview or your application, you may find yourself needing to
Stack Abuse: Randomly Select an Item from a List in Python

Link: https://stackabuse.com/randomly-select-an-item-from-a-list-in-python/

Introduction
In Python, lists are among the most widely used data structures due to their versatility. They can hold a variety of data types and are easily manipulated. One task you may come across is
Stack Abuse: Dropping NaN Values in Pandas DataFrame

Link: https://stackabuse.com/dropping-nan-values-in-pandas-dataframe/

Introduction
When working with data in Python, it's not uncommon to encounter missing or null values, often represented as NaN. In this Byte, we'll see how to handle these NaN values within the contex
Stack Abuse: Python: Accessing the Last Element of a List

Link: https://stackabuse.com/python-accessing-the-last-element-of-a-list/

Introduction
In Python, lists are one of the most used data types,
We commonly use lists to store data in Python, and for good reason, they offer a great deal of flexibility with their operations. One