Planet Python RSS
213 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
eGenix.com: Python Meeting Düsseldorf - 2022-03-30

Link: https://www.egenix.com/company/news/Python-Meeting-Duesseldorf-2022-03-30

The following text is in German, since we're announcing a regional user group meeting in Düsseldorf, Germany.

Ankündigung
Das nächste Python Meeting Düsseldorf findet an folgendem Termin statt:

30.0
Real Python: The Real Python Podcast – Episode #103: Becoming More Effective at Manipulating Data With Pandas

Link: https://realpython.com/podcasts/rpp/103/

Do you wonder if you're taking the right approach when shaping data in pandas? Is your Jupyter workflow getting out of hand? This week on the show, Matt Harrison talks about his new book, "Effective P
Python for Beginners: List of Lists in Python

Link: https://www.pythonforbeginners.com/basics/list-of-lists-in-python

Lists are used in python to store data when we need to access them sequentially. In this article, we will discuss how we can create a list of lists in python. We will also implement programs to perfor
Talk Python to Me: #358: Understanding Pandas visually with PandasTutor

Link: https://talkpython.fm/episodes/show/358/understanding-pandas-visually-with-pandastutor

Pandas is a great library that allows you to accomplish a ton of filtering and processing in condensed syntax. But how well do you understand what's happening? Sam Lau and Philip Guo built a great sit
Marcos Dione: trying-to-calculate-proper-shading

Link: http://www.grulic.org.ar/~mdione/glob//posts/trying-to-calculate-proper-shading/

It all started with the following statement: "my renders are too slow". There
were three issues as the root case: osm-carto had become more complex (nothing I
can do there), my compute resources were
ItsMyCode: [Solved] RuntimeWarning: invalid value encountered in true_divide

Link: https://itsmycode.com/invalid-value-encountered-in-true-divide/

Suppose you attempt to divide the NumPy arrays elements using the divide() method with invalid values such as 0/0, NaN Infinity, zero, etc. you will encounter a RuntimeWarning: invalid value encounter
ItsMyCode: [Solved] ValueError: cannot convert float NaN to integer

Link: https://itsmycode.com/cannot-convert-float-nan-to-integer/

The ValueError: cannot convert float NaN to integer occurs when we attempt to convert the pandas DataFrame column from float to an integer where the column contains NaN value.
In this tutorial, we wil
ItsMyCode: [Solved] AttributeError: ‘numpy.ndarray’ object has no attribute ‘append’

Link: https://itsmycode.com/numpy-ndarray-object-has-no-attribute-append/

If you use the regular Python list append() method to add an element to the end of NumPy array, you will encounter AttributeError: ‘numpy.ndarray’ object has no attribute ‘append’.
In this tutorial, w
ItsMyCode: [Solved] SyntaxError: Positional argument follows keyword argument

Link: https://itsmycode.com/positional-argument-follows-keyword-argument/

If you provide the keyword argument first followed by a positional argument, the Python interpreter will raise SyntaxError: positional argument follows keyword argument.
In this tutorial, we will lear
Matthew Wright: Using requests and BeautifulSoup in Python to scrape data

Link: https://www.wrighters.io/using-requests-and-beautifulsoup-in-python-to-scrape-data/

Sometimes pandas.read_html doesn't work for scraping website data, but you can try using requests and BeautifulSoup to do it yourself.The post Using requests and BeautifulSoup in Python to scrape data
The No Title® Tech Blog: Book review — Python Distilled, by David M. Beazley

Link: https://no-title.victordomingos.com/articles/2022/book_review_python_distilled

This is a pragmatic book that presents some of the most important topics about the Python programming language in a concise form, designed to make it easier to find out the most relevant information b
Podcast.__init__: Building A Community And Technology Stack For Scalable Big Data Geoscience At Pangeo

Link: https://www.pythonpodcast.com/pangeo-big-data-geoscience-episode-358/

Science is founded on the collection and analysis of data. For disciplines that rely on data about the earth the ability to simulate and generate that data has been growing faster than the tools for a
Mike Driscoll: PyDev of the Week: Daniel Gaspar

Link: https://www.blog.pythonlibrary.org/2022/03/28/pydev-of-the-week-daniel-gaspar/

This week we welcome Daniel Gaspar as our PyDev of the Week! Daniel is the co-author of Mastering Flask Web Development. If you would like to see what else Daniel has been up to, you should check out
Real Python: Pagination for a User-Friendly Django App

Link: https://realpython.com/django-pagination/

You can improve the user experience of your Django web app significantly by spreading your content over multiple pages instead of serving all of it at once.
This practice is called pagination.
To impl
Anarcat: What is going on with web servers

Link: https://anarc.at/blog/2022-03-28-wtf-web-servers/

I stumbled upon this graph recently, which is w3techs.com
graph of "Historical yearly trends in the usage statistics of web
servers". It seems I hadn't looked at it in a long while because I was
surpr
Kushal Das: Introducing Very Bad Web Application

Link: https://kushaldas.in/posts/introducing-very-bad-web-application.html


I am planning to add a few chapters on securing services in my Linux Command
Line book. But, to make it practical &
hands on, I needed one real application which the readers can deploy and
secure. I
Python GUIs: QPSQL driver not loaded: Using Postgres with Qt & Python on Windows

Link: https://www.pythonguis.com/faq/postgres-pyqt5-windows-driver-not-loaded/

If you're trying to use Postgres with PyQt5/6 or PySide2/PySide6 you may have come across an issue with loading the driver.
Qt (correctly) lists the driver as available in Qt, but when trying to load
Mike Driscoll: Automating Excel with Python Video Overview

Link: https://www.blog.pythonlibrary.org/2022/03/29/automating-excel-with-python-video-overview/

In this tutorial, I will show you an overview of using OpenPyXL and Python to read and write Excel documents. You will also learn how to:

Style cells
Change fonts
Create named styles
Use pandas with
Inspired Python: Tower Defense Game: Finite State Automata / State Machines

Link: https://www.inspiredpython.com/course/create-tower-defense-game/tower-defense-game-finite-state-automata-state-machines


Tower Defense Game: Finite State Automata / State Machines
Complex codebases – and games are usually complex – tend to rely on a lot of state, usually captured in variables. Navigating from one scree
Inspired Python: Tower Defense Game: Game Loop and Initializing PyGame

Link: https://www.inspiredpython.com/course/create-tower-defense-game/tower-defense-game-game-loop-and-initializing-pygame


Tower Defense Game: Game Loop and Initializing PyGame
How do you instruct your computer game to draw things to the screen consistently and to a drum-beat that ensures there’s no awkward pauses or jit
Inspired Python: Tower Defense Game: Getting Started

Link: https://www.inspiredpython.com/course/create-tower-defense-game/tower-defense-game-getting-started


Tower Defense Game: Getting Started
Python package management is not the easiest thing to wrap your head around. Nevertheless, it’s important that we capture the requirements our game has, properly,