Planet Python RSS
214 subscribers
17.1K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
ItsMyCode: Python JSONPath

Link: https://itsmycode.com/python-jsonpath/

ItsMyCode |
JSONPath is an expression language that is used to parse the JSON data in Python. JSONPath is similar to XPath in XML, where we parse the XML data. 
JSONPath provides a simpler syntax to q
Weekly Python StackOverflow Report: (ccxcix) stackoverflow python report

Link: http://python-weekly.blogspot.com/2021/10/ccxcix-stackoverflow-python-report.html

These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2021-10-30 13:46:37 GMTNumPy: construct squares along diagonal of matri
Podcast.__init__: Build Composable And Reusable Feature Engineering Pipelines with Feature-Engine

Link: https://www.pythonpodcast.com/feature-engine-feature-engineering-pipelines-episode-338/

Every machine learning model has to start with feature engineering. This is the process of combining input variables into a more meaningful signal for the problem that you are trying to solve. Many ti
ItsMyCode: Python ValueError: cannot reindex from a duplicate axis

Link: https://itsmycode.com/python-valueerror-cannot-reindex-from-a-duplicate-axis/

ItsMyCode |
In Python, you will get a valueerror: cannot reindex from a duplicate axis usually when you set an index to a specific value, reindexing or resampling the DataFrame using reindex method.
I
The Python Coding Blog: Practise Using Lists, Tuples, Dictionaries, and Sets in Python With the Chaotic Balls Animation

Link: https://thepythoncodingbook.com/2021/10/31/using-lists-tuples-dictionaries-and-sets-in-python/

One of the early topics covered when learning to code deals with the built-in data structures in Python. Lists are usually learned early on, followed by dictionaries and tuples. Sets are not normally
ItsMyCode: Python FileNotFoundError: [Errno 2] No such file or directory Solution

Link: https://itsmycode.com/python-filenotfounderror-errno-2-no-such-file-or-directory-solution/

ItsMyCode |
In Python, when you reference a file, it needs to exist. Otherwise, Python will return a FileNotFoundError: [Errno 2] No such file or directory.
In this tutorial, let’s look at what is Fil
ItsMyCode: Python pip: command not found Solution

Link: https://itsmycode.com/python-pip-command-not-found-solution/

ItsMyCode |
Pip is a recursive acronym for either “Pip Installs Packages” or “Pip Installs Python.” Alternatively, pip stands for “preferred installer program.” Basically, it is a package manager that
Mike Driscoll: PyDev of the Week: Tzu-ping Chung

Link: https://www.blog.pythonlibrary.org/2021/11/01/pydev-of-the-week-tzu-ping-chung/

This week we welcome Tzu-ping Chung (@uranusjr) as our PyDev of the Week! Tzu-ping is a member of Python Packaging Authority (PyPA) and a maintainer of pip and pipx. You can see what else Tzu-ping ha
Django Weblog: Django bugfix release: 3.2.9

Link: https://www.djangoproject.com/weblog/2021/nov/01/bugfix-release/

Today we've issued the 3.2.9 bugfix release.
The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is
Zero to Mastery: Python Monthly Newsletter 💻🐍 October 2021

Link: https://zerotomastery.io/blog/python-monthly-october-2021/?utm_source=python-rss-feed

23rd issue of the Python Monthly Newsletter! Read by 20,000+ Python developers every month. This monthly Python newsletter covers the latest Python news so that you stay up-to-date with the industry a
Stack Abuse: Using borb to Create E-books From Project Gutenberg

Link: https://stackabuse.com/using-borb-to-create-e-books-from-project-gutenberg/

The Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engine
Real Python: Python's zipapp: Build Executable Zip Applications

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

A Python Zip application is a quick and cool option for you to bundle and distribute an executable application in a single ready-to-run file, which will make your end users’ experience more pleasant.
Trey Hunner: How to flatten a list in Python

Link: https://treyhunner.com/2021/11/how-to-flatten-a-list-in-python/

You’ve somehow ended up with lists nested inside of lists, possibly like this one:
1
>>> groups = [["Hong", "Ryan"], ["Anthony", "Wilhelmina"], ["Margaret", "Adrian"]]

But you want just a single list
Python Morsels: Modules are cached

Link: https://www.pythonmorsels.com/topics/modules-are-cached/




Transcript
Python caches modules.
Re-importing modules doesn't update them
We've have a points module here (a file called points.py) that contains a Point class:
class Point:
def __init__(self,
Python for Beginners: Set Operations in Python

Link: https://www.pythonforbeginners.com/basics/set-operations-in-python

Sets are container objects that contain unique elements in it. In this article, we will look at various set operations like union, intersection, and set difference. We will also implement the set oper
Real Python: Reading Input and Writing Output in Python

Link: https://realpython.com/courses/reading-input-writing-output-python/

You often need to set up a program to communicate with the outside world by obtaining input data from the user and displaying data back to the user. This course will introduce you to reading input and