Planet Python RSS
212 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Chris Moffitt: Case Study: Automating Excel File Creation and Distribution with Pandas and Outlook

Link: https://pbpython.com/excel-email.html


Introduction
I enjoy hearing from readers that have used concepts from this blog to solve their own problems.
It always amazes me when I see examples where only a few lines of python code can solve
a
Real Python: Make Your First Python Game: Rock, Paper, Scissors!

Link: https://realpython.com/python-rock-paper-scissors/

Game programming is a great way to learn how to program. You use many tools that you’ll see in the real world, plus you get to play a game to test your results! An ideal game to start your Python game
Andre Roberge: Don't you want to win a free book?

Link: https://aroberge.blogspot.com/2021/01/dont-you-want-to-win-free-book.html

 At the end of Day 2 of the contest, still only one entry. If this keeps up, by next Monday there will not be a draw for a prize, and we will have a winner by default.The submission was based on the u
Podcast.__init__: Driving Toward A Faster Python Interpreter With Pyston

Link: https://www.pythonpodcast.com/pyston-fast-python-interpreter-episode-298/

One of the common complaints about Python is that it is slow. There are languages and runtimes that can execute code faster, but they are not as easy to be productive with, so many people are willing
Python Pool: How to Solve “unhashable type: list” Error in Python

Link: https://www.pythonpool.com/unhashable-type-list/?utm_source=rss&utm_medium=rss&utm_campaign=unhashable-type-list

Hello geeks, and welcome in this article, we will be covering “unhashable type: list.” It is a type of error that we come across when writing code in python. In this article, ur main objective is to l
Python Pool: What is Python Syslog? Explained with Different methods

Link: https://www.pythonpool.com/python-syslog/?utm_source=rss&utm_medium=rss&utm_campaign=python-syslog

Hello geeks and welcome in today’s article, we will cover Python Syslog. Along with that, for proper understanding, we will look at different methods and also some sample code. Before moving that ahea
Python Pool: CV2 Normalize() in Python Explained With Examples

Link: https://www.pythonpool.com/cv2-normalize/?utm_source=rss&utm_medium=rss&utm_campaign=cv2-normalize

Hello geeks and welcome in this article, we will cover cv2 normalize(). Along with that, we will also look at its syntax for an overall better understanding. Then we will see the application of all th
Full Stack Python: How to Transcribe Speech Recordings into Text with Python

Link: https://www.fullstackpython.com/blog/transcribe-recordings-speech-text-assemblyai.html

When you have a recording where one or more people are talking, it's useful
to have a highly accurate and automated way to extract the spoken words into
text. Once you have the text, you can use it fo
Django Weblog: Django 3.2 alpha 1 released

Link: https://www.djangoproject.com/weblog/2021/jan/19/django-32-alpha-1-released/

Django 3.2 alpha 1 is now available. It represents the first stage in the 3.2
release cycle and is an opportunity for you to try out the changes coming in
Django 3.2.
Django 3.2 has a mezcla of new fe
Stack Abuse: Python: Catch Multiple Exceptions in One Line

Link: https://stackabuse.com/python-catch-multiple-exceptions-in-one-line/

Introduction
In this article we're going to be taking a look at the try/except clause, and specifically how you can catch multiple exceptions in a single line, as well as how to use the suppress() met
Real Python: Introduction to Sorting Algorithms in Python

Link: https://realpython.com/courses/intro-sorting-algorithms/

Sorting is a basic building block that many other algorithms are built upon. It’s related to several exciting ideas that you’ll see throughout your programming career. Understanding how sorting algori
PyCoder’s Weekly: Issue #456 (Jan. 19, 2021)

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

#456 – JANUARY 19, 2021 View in Browser » Automating Excel File Creation and Distribution With Pandas And Outlook See how a little bit of Python can go a long way to automating manual processes
Python Pool: Demystifying += in Python with Examples

Link: https://www.pythonpool.com/plus-equal-to-in-python/?utm_source=rss&utm_medium=rss&utm_campaign=plus-equal-to-in-python

Day by day, Python is becoming easier to write and easily structured. This development creates a better version of Python and allows new developers to have a smooth coding experience. += in Python is
Real Python: C for Python Programmers

Link: https://realpython.com/c-for-python-programmers/

The purpose of this tutorial is to get an experienced Python programmer up to speed with the basics of the C language and how it’s used in the CPython source code. It assumes you already have an inter
Mike Driscoll: PySimpleGUI: Working with Multiple Windows

Link: https://www.blog.pythonlibrary.org/2021/01/20/pysimplegui-working-with-multiple-windows/

When you are creating graphical user interfaces (GUIs), you will often find that you need to create more than one window. In this tutorial, you will learn how to create two windows with PySimpleGUI.
P
Matthew Wright: Selecting in Pandas using where and mask

Link: https://www.wrighters.io/selecting-in-pandas-using-where-and-mask/

This is the fifth post in a series on indexing and selecting in pandas. If you are jumping in the middle and want to get caught up, here's what has been discussed so far: Basic indexing, selecting by
Python Pool: How to solve Type error: a byte-like object is required not ‘str’

Link: https://www.pythonpool.com/type-error-a-byte-like-object-is-required-not-str/?utm_source=rss&utm_medium=rss&utm_campaign=type-error-a-byte-like-object-is-required-not-str

Hello geeks and welcome, In this article, we will cover Type error: a byte-like object is required, not ‘str.’ Along with that, we will look at the root cause due to which this error occurs. Then we w
Martin Fitzpatrick: micro:bit Space Invaders — Playable retro game in just 25 pixels

Link: https://www.mfitzp.com/article/microbit-space-invaders/

How much game can you fit into 25 pixels? Quite a bit it turns out.
This is a mini clone of arcade classic Space Invaders for the BBC micro:bit microcomputer.
Using the accelerometer and two buttons f
Codementor: How To Drag And Drop In Selenium With Python?

Link: https://www.codementor.io/codepoetn/how-to-drag-and-drop-in-selenium-with-python-1ec9pyw1mx

Automating drag and drop in Selenium Python is the need of a devs hour. Stop wasting your time doing it manually and automate the entire process using Selenium with Python.
Codementor: How to implement pagination in Django queryset using limit and offset?

Link: https://www.codementor.io/argo/how-to-implement-pagination-in-django-queryset-using-limit-and-offset-1ecbbokmdt

Django utilises the array slicing syntax of python to implement limit offset. Suppose you have 20 rows in a queryset and you want to access the data in batches of 5.
firstfiverows =...