Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: Using NumPy reshape() to Change the Shape of an Array

Link: https://realpython.com/numpy-reshape/

The main data structure that you’ll use in NumPy is the N-dimensional array. An array can have one or more dimensions to structure your data. In some programs, you may need to change how you organize
Brian Okken: pytest tips and tricks

Link: https://pythontest.com/pytest-tips-tricks/

This is a set of tips/tricks for learning and using pytest.
I’ll probably build on the list, so feel free to share with me items you think should be in the list.
Many items really deserve more explana
Brian Okken: Sharing is Caring - Sharing pytest Fixtures - PyCascades 2023

Link: https://pythontest.com/pycascades-2023/

I’ll be giving a talk at PyCascades 2023.
Talk page: Sharing is Caring - Sharing pytest Fixtures
Scheduled Time: Sunday, March 19, 11:30 am
[Slides] I’ll a link to the slides probably sometime o
PyBites: Feel Comfortable with Git?

Link: https://pybit.es/articles/feel-comfortable-with-git/

Folks come to me to ask for help with Git.
Sometimes they can’t guess what git subcommand they need. (Git 2.37 has 169.)
Sometimes they know what subcommand they want, but don’t know what flags to us
Zero to Mastery: Python Monthly Newsletter 💻🐍

Link: https://zerotomastery.io/blog/python-monthly-newsletter-february-2023/?utm_source=python-rss-feed

39th issue of the Python Monthly Newsletter! Read by 25,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
Real Python: Writing Clean, Pythonic Code With namedtuple

Link: https://realpython.com/courses/python-namedtuple/

Python’s collections module provides a factory function called namedtuple(), which is specially designed to make your code more Pythonic when you’re working with tuples. With namedtuple(), you can cre
Python Morsels: Using Python's "list" constructor

Link: https://www.pythonmorsels.com/using-list/

When should you use the built-in list function in Python? And when shouldn't you?


Table of contents

What does list do?
Don't use list() to create empty lists
The four uses of list
Shallow copying l
PyCoder’s Weekly: Issue #566 (Feb. 28, 2023)

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

#566 – FEBRUARY 28, 2023 View in Browser » Using NumPy and Linear Algebra for Faster Python Code Are you still using loops and lists to process your data in Python? Have you heard of a Python li
Mike Driscoll: Python’s Tuple Methods (Video)

Link: https://www.blog.pythonlibrary.org/2023/02/28/pythons-tuple-methods-video/

Do you know how many methods Python’s tuple data type has?
If not, you can find out in this video:

Python’s tuple data type only has TWO methods! This video will teach you about both of them.
The pos
Python Bytes: #325 It's called a merge conflict

Link: https://pythonbytes.fm/episodes/show/325/its-called-a-merge-conflict

<a href='https://www.youtube.com/watch?v=GwLi4Tjd5sM' 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
PyBites: Django class based vs function based views

Link: https://pybit.es/articles/django-class-based-vs-function-based-views/

This post first appeared as an email on our friends list. We decided to publish it here because the question is still commonly asked

The other day I did a presentation on Django class based vs funct
Real Python: Iterators and Iterables in Python: Run Efficient Iterations

Link: https://realpython.com/python-iterators-iterables/

Python’s iterators and iterables are two different but related tools that come in handy when you need to iterate over a data stream or container. Iterators power and control the iteration process, whi
Stack Abuse: How to Convert JSON to a Python Object

Link: https://stackabuse.com/how-to-convert-json-to-a-python-object/

Introduction
In the world of programming, data is often stored and transmitted in various formats to other parts of an application or other web services. To fascillitate data transfer between services
Python for Beginners: Create Empty Dataframe in Python

Link: https://www.pythonforbeginners.com/basics/create-empty-dataframe-in-python

Pandas dataframes are used to process tabular data in python. Sometimes we need to create an empty dataframe to fill in values later. This article discusses how to create empty pandas dataframe in pyt