Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python⇒Speed: Invasive procedures: Python affordances for performance measurement

Link: https://pythonspeed.com/articles/measuring-python-performance/

When your Python code is too slow, you need to identify the bottleneck that’s causing it: you need to understand what your code is doing.
Luckily, beyond pre-existing profiling tools, there are also a
Hynek Schlawack: Easier Crediting of Contributors on GitHub

Link: https://hynek.me/til/easier-crediting-contributors-github/

Git has the concept of co-authors of a commit. You’ve probably seen it in the web UI, when multiple people are listed to have committed something. I want to be gracious with credit where it’s due and
Mike Driscoll: How to Rotate and Mirror Images with Python and Pillow (Video)

Link: https://www.blog.pythonlibrary.org/2022/08/18/how-to-rotate-and-mirror-images-with-python-and-pillow-video/

In this video tutorial, you will learn how to rotate and mirror images with Python and the Pillow package. This is also known as transposing an image.

Want to learn more about working with images wit
Anwesha Das: How to add a renew hook for certbot?

Link: http://anweshadas.in/how-to-add-a-renew-hook-for-certbot/

After moving the foss.trainingserver to a new location, we found that TLS certificate was expired. I had looked and figured out that though certbot renewed the certificate, it never reloaded the nginx
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
John Ludhi/nbshare.io: PySpark Substr and Substring

Link: https://www.nbshare.io/notebook/150872632/PySpark-Substr-and-Substring/








PySpark Substr and Substring








substring(col_name, pos, len) - Substring starts at pos and is of length len when str is String type or returns the slice of byte array that starts at pos i
PyBites: The importance of practicing gratitude

Link: https://pybit.es/articles/pp83-the-importance-of-practicing-gratitude/

Listen now:

This week we talk about gratitude.
Why? We spotted a trend that people are not saying thanks enough. We often suppose things are “just” working, forgetting that there is actually a lot of
Real Python: The Real Python Podcast – Episode #122: Configuring a Coding Environment on Windows & Using TOML With Python

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

Have you attempted to set up a Python development environment on Windows before? Would it be helpful to have an easy-to-follow guide to get you started? This week on the show, Christopher Trudeau is h
Python for Beginners: Check For Superset in Python

Link: https://www.pythonforbeginners.com/basics/check-for-superset-in-python

In python, we use sets to store unique immutable objects. In this article,  we will discuss what is a superset of a set. We will also discuss ways to check for superset in Python.
What is a Superset?
eGenix.com: eGenix Antispam Bot for Telegram 0.4.0 GA

Link: https://www.egenix.com/company/news/eGenix-Antispam-Bot-for-Telegram-0.4.0-GA.html

Introduction

eGenix has long been running a local user group meeting in Düsseldorf
called Python Meeting Düsseldorf and we are using a Telegram group
for most of our communication.
In the early days
Mike Driscoll: Python 101 - Debugging Your Code with pdb (Video)

Link: https://www.blog.pythonlibrary.org/2022/08/19/python-101-debugging-your-code-with-pdb-video/

Learn how to debug your Python programs using Python's built-in debugger, pdb with Mike Driscoll
In this tutorial, you will learn the following:

Starting pdb in the REPL
Starting pdb on the Command L
Stack Abuse: RetinaNet Object Detection with PyTorch and torchvision

Link: https://stackabuse.com/retinanet-object-detection-with-pytorch-and-torchvision/

Introduction
Object detection is a large field in computer vision, and one of the more important applications of computer vision "in the wild". On one end, it can be used to build autonomous systems t
Stack Abuse: Object Detection and Instance Segmentation in Python with Detectron2

Link: https://stackabuse.com/object-detection-and-instance-segmentation-in-python-with-detectron2/

Introduction
Object detection is a large field in computer vision, and one of the more important applications of computer vision "in the wild". On one end, it can be used to build autonomous systems t
John Ludhi/nbshare.io: PySpark Replace Values In DataFrames

Link: https://www.nbshare.io/notebook/14769608/PySpark-Replace-Values-In-DataFrames/








PySpark Replace Values In DataFrames Using regexp_replace(), translate() and Overlay() Functions








regexp_replace(), translate(), and overlay() functions can be used to replace values in
Stack Abuse: Guide to the K-Nearest Neighbors Algorithm in Python and Scikit-Learn

Link: https://stackabuse.com/k-nearest-neighbors-algorithm-in-python-and-scikit-learn/

Introduction
The K-nearest Neighbors (KNN) algorithm is a type of supervised machine learning algorithm used for classification, regression as well as outlier detection. It is extremely easy to implem
Talk Python to Me: #378: Flet: Flutter apps in Python

Link: https://talkpython.fm/episodes/show/378/flet-flutter-apps-in-python

Have you heard of Flutter? It's a modern and polished UI framework to write mobile apps, desktop apps, and even web apps. While interesting, you may have kept your distance because Flutter is a Dart l
Python for Beginners: Insert Element in A Sorted List in Python

Link: https://www.pythonforbeginners.com/basics/insert-element-in-a-sorted-list-in-python

Normally, we add elements to the end of a list in python. However, if we are given a sorted list and we are asked to maintain the order of the elements while inserting a new element, it might become a
Python Circle: The Rising Popularity of Python

Link: https://pythoncircle.com/post/763/the-rising-popularity-of-python/

The rising popularity of Python, why is python so popular, what is the future of Python, Is python going to be the top choice by 2025,
PyCharm: PyCharm 2022.2.1 Is Out

Link: https://blog.jetbrains.com/pycharm/2022/08/2022-2-1-2/

The first minor release for PyCharm 2022.2 is available with the following fixes:
We’ve enabled the new UI for setting up an interpreter via the Show all popup menu in the Python Interpreter popup win
Real Python: How to Check if a Python String Contains a Substring

Link: https://realpython.com/python-string-contains-substring/

If you’re new to programming or come from a programming language other than Python, you may be looking for the best way to check whether a string contains another string in Python.
Identifying such su