Planet Python RSS
216 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
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
Python for Beginners: Pandas Replace NaN With 0 in Dataframe

Link: https://www.pythonforbeginners.com/basics/pandas-replace-nan-with-0-in-dataframe

NaN or null values are undesired in any dataset. In this article, we will discuss different ways to replace nan with 0 in a pandas dataframe and series.
We can use three approaches to replace nan with
PyCharm: Webinar: “Reloadium: Faster Python Development with Hot Reloading in PyCharm”

Link: https://blog.jetbrains.com/pycharm/2023/01/webinar-reloadium/

You write your code, restart your server, and wait for the screen to update, but by then, you’re already interrupted. Ever wish you could use the fast development cycle frontends have with hot reloadi
Django Weblog: Django 4.2 alpha 1 released

Link: https://www.djangoproject.com/weblog/2023/jan/17/django-42-alpha-1-released/

Django 4.2 alpha 1 is now available. It represents the first stage in the 4.2
release cycle and is an opportunity for you to try out the changes coming in
Django 4.2.
Django 4.2 has a farrago of new f
Real Python: Python Basics Exercises: File System Operations

Link: https://realpython.com/courses/python-file-system-exercises/

In Python Basics: File System Operations, you learned how to use Python to work with files and folders. As a programmer, you’ll use the pathlib and shutil modules to complete file system operations wi
PyCoder’s Weekly: Issue #560 (Jan. 17, 2023)

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

#560 – JANUARY 17, 2023 View in Browser » PEP 703: Making the GIL Optional in CPython This PEP proposes changes to the CPython build process that would allow you to build a GIL-less interpreter.
Sebastian Witowski: Dictionary Comprehension

Link: https://switowski.com/blog/dictionary-comprehension/

Apart from the list comprehension method, in Python, we also have dictionary comprehension - a little less known but very useful feature. It's a perfect tool for creating a dictionary from an iterable