Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Abhijeet Pal: Creating Custom Exception in Django Rest Framework

Link: http://djangocentral.com/creating-custom-exception-in-django-rest-framework/

Django Rest Framework (DRF) provides built-in exception handling that can be used to handle errors and exceptions in a RESTful API. However, in some cases, you may need to create a custom exception to
Python for Beginners: Pandas Applymap to a Dataframe in Python

Link: https://www.pythonforbeginners.com/basics/pandas-applymap-to-a-dataframe-in-python

The pandas applymap() method is used to apply a function to a dataframe element-wise. This article will discuss different ways to use the applymap method with a pandas dataframe.
Table of ContentsThe
death and gravity: Dataclasses without type annotations

Link: https://death.andgravity.com/dataclasses

The dataclasses standard library module
reduces the boilerplate of writing classes
by generating special methods like __init__ and __repr__.
I've noticed a small (but vocal) minority of people that:
PyBites: Resources to stay focused and positive

Link: https://pybit.es/articles/resources-to-stay-focused-and-positive/

This content appeared as a Pybites email first. If you like it, subscribe to our friends list here to get weekly emails about Python / Developer / Mindset related topics.
Let’s be honest, there is a l
Abhijeet Pal: How to Check if a File Exists With Python

Link: http://djangocentral.com/how-to-check-if-a-file-exists-with-python/

Checking if a file exists is a common task in while working with files. There are several ways to check if a file exists without raising an unwanted exception, each with its own advantages and disadva
Abhijeet Pal: How to Iterate Over Rows in a Dataframe in Pandas

Link: http://djangocentral.com/how-to-iterate-over-rows-in-a-dataframe-in-pandas/

Pandas is a powerful library for working with data in Python, and the DataFrame is one of its most widely used data structures. One common task when working with DataFrames is to iterate over the rows
Abhijeet Pal: How to Revert the Last Migration in Django

Link: http://djangocentral.com/how-to-revert-the-last-migration-in-django/

In Django, migrations are used to manage changes to the database schema, such as creating or modifying tables. Sometimes, you may need to revert the last migration to undo changes that were made to th
Abhijeet Pal: Understanding related_name in Django Models

Link: http://djangocentral.com/understanding-related-name-in-django-models/

In Django, related_name is an attribute that can be used to specify the name of the reverse relation from the related model back to the model that defines the relation. It is used to specify the name
Abhijeet Pal: Capturing Query Parameters of request.get in Django

Link: http://djangocentral.com/capturing-query-parameters-of-requestget-in-django/

In Django, the request object contains a variety of information about the current HTTP request, including the query parameters. Query parameters are a way to pass additional information in the URL and
John Ludhi/nbshare.io: Pandas Datareader To Download Stocks Data From Google And Yahoo Finance

Link: https://www.nbshare.io/notebook/63624410/Pandas-Datareader-To-Download-Stocks-Data-From-Google-And-Yahoo-Finance/







Pandas Datareader To Download Stocks Data From Google And Yahoo Finance










Datareader package can be used to access data from multiple sources such as yahoo and google finance...
Talk Python to Me: #398: Imaging Black Holes with Python

Link: https://talkpython.fm/episodes/show/398/imaging-black-holes-with-python

The iconic and first ever image of a black hole was recently released. It took over a decade of work and is a major achievement for astronomy and broadens our understanding of the universe for all of
John Ludhi/nbshare.io: How To Use Selenium Webdriver To Crawl Websites

Link: https://www.nbshare.io/notebook/609445379/How-To-Use-Selenium-Webdriver-To-Crawl-Websites/







How To Use Selenium Webdriver To Crawl Websites










I have Selenium 4.7.2 version installed. You can check yours using following command.








In [11]:


!pip show selenium
Daniel Roy Greenfeld: Practice Python Web Projects

Link: https://daniel.feldroy.com/posts/2023-01-practice-python-web-projects

I firmly believe that substantial improvement in any skill can only be achieved through practice. With that in mind, I have compiled a list of projects I have built over the years to practice my skill
David Amos: Never Modify Inputs Without Permission

Link: https://davidamos.dev/never-modify-inputs-without-permission/

Have you ever loaned something to someone only to have it returned to you in a different state?I saw this exact situation play out this week at work. A user reported that an SDK method, which involved
Chris Warrick: How to improve Python packaging, or why fourteen tools are at least twelve too many

Link: https://chriswarrick.com/blog/2023/01/15/how-to-improve-python-packaging/

There is an area of Python that many developers have problems with. This is an area that has seen many different solutions pop up over the years, with many different opinions, wars, and attempts to so
CodersLegacy: Better alternatives to Pyinstaller in Python

Link: https://coderslegacy.com/better-alternatives-to-pyinstaller/

In this article, we will discuss several (better) alternatives to the popular Pyinstaller library in Python.
Python is a popular programming language widely used for creating a variety of applications
Mike Driscoll: PyDev of the Week: Tim Schilling

Link: https://www.blog.pythonlibrary.org/2023/01/16/pydev-of-the-week-tim-schilling/

This week we welcome Tim Schilling (@CodenameTim) as our PyDev of the Week! You can catch up with Tim by checking out his website. Tim is also active on Mastodon and GitHub.
Let’s spend some time gett
Real Python: Python's Assignment Operator: Write Robust Assignments

Link: https://realpython.com/python-assignment-operator/

Python’s assignment operators allow you to define assignment statements. This type of statement lets you create, initialize, and update variables throughout your code. Variables are a fundamental corn