Quantcast
Channel: Planet Python
Browsing all 24370 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Python Software Foundation: The 2021 Python Language Summit: Lightning Talks,...

The second day of the 2021 Python Language Summit finished with a series of lightning talks from Ronny Pfannschmidt, Pablo Galindo, Batuhan Taskaya, Luciano Ramalho, Jason R. Coombs,Mark Shannon, and...

View Article


Real Python: Python's filter(): Extract Values From Iterables

Python’s filter() is a built-in function that allows you to process an iterable and extract those items that satisfy a given condition. This process is commonly known as a filtering operation. With...

View Article


Image may be NSFW.
Clik here to view.

Python Morsels: What is a decorator?

TranscriptA decorator is a function that accepts a function and returns a function.Decorators accept a function and return a functionWe've defined an is_prime function here:>>> def...

View Article

Python Bytes: #237 Separate your SQL and Python, asynchronously with aiosql

<p><strong>Watch the live stream:</strong></p> <a href='https://www.youtube.com/watch?v=SXBdtq97xl4' style='font-weight: bold;'>Watch on YouTube</a><br>...

View Article

AI Pool: How to calculate the size of a video in OpenCV?

In deep learning, we often need to get the information of the video, so how to calculate the size of the video? I need something in python to get the file size in bytes....

View Article


AI Pool: ImportError: No module named tensorflow

I just installed TensorFlow with pip3 in a python virtual environment, but now I get this error when I try to import it import tensorflow as tf # ... ImportError: No module named tensorflow #...

View Article

AI Pool: Uninstall Tensorflow by Anaconda on Windows

I've got a Windows PC and can't find out how they installed Tensorflow on it. I assumed they have used pip, but after calling uninstall TensorFlow, it didn't change anything. Should I use the anaconda...

View Article

AI Pool: How to install Tensorflow on windows with anaconda?

I'm using Windows OS and Anaconda on my pc. I want to install TensorFlow and can't find how to make it....

View Article


John Ludhi/nbshare.io: How To Convert Python List To Pandas DataFrame

How To Convert Python List To Pandas DataframePandas dataframe is a very useful data structure.In this notebook, I will show with examples how to convert Python List to Pandas Dataframe.In...

View Article


death and gravity: Python sentinel objects, type hints, and PEP 661

PEP 661"Sentinel Values" recently brought to attention the sentinel object pattern.1While by no means new2, this time the pattern appears in the context of typing, so it's worth taking a look at how...

View Article

Mike C. Fletcher: Django Field Rename Migrations and Test Cases

Is there some trick to running Django test cases when you've got a RenameField later in the migration-stack? I feel like this has to be some obvious thing I'm missing...With a migration (say...

View Article

Python for Beginners: How to Delete a Specific Line in a File

Because Python provides no direct method for deleting a specific line in a file, it’s necessary to find our own approach.In this guide, we’ll cover several ways of removing lines from a text file using...

View Article

Test and Code: 157: pre-commit - Anthony Sottile

pre-commit started as a framework for running linters and code formatters during git actions via git hooks. It's grown and expanded and now supports an extensive list of languages and actions and...

View Article


Real Python: The Real Python Podcast – Episode #64: Detecting Deforestation...

Are you looking for an in-depth data science project to practice your skills on? Perhaps you would like to add new tools to your Python web development projects instead? This week on the show, David...

View Article

Python for Beginners: Packing in Python

Packing is a technique in python with which we put several values into a single iterator. If we talk of packing in literal terms, Just like we pack certain items into a box in the real world, In python...

View Article


Codementor: Using Environment Variables in Python for App Configuration and...

Learn how experienced developers use environment variables in Python, including managing default values and typecasting.

View Article

Codementor: Top Tech Skills for the Future of Work

The rate of technological change is accelerating and lots of new technologies and skills are coming. It is almost unpredictable to tell which technical skill will be in demand in future and which...

View Article


Image may be NSFW.
Clik here to view.

Lucas Cimon: fpdf2.4.0 and converting GIFs to PDFs

fpdf2 is a minimalist PDF creation library for Python that I am maintaining.With the release yesterday of its v2.4.0, I'm going to present some of its notable new features since the latest minor...

View Article

Image may be NSFW.
Clik here to view.

Doug Hellmann: sphinxcontrib-datatemplates 0.8.1

This release adds a load() function to the template context for loading additional data sources from within a template.

View Article

Weekly Python StackOverflow Report: (cclxxix) stackoverflow python report

These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2021-06-12 13:48:30 GMTHow to use df.loc (or some other method) to make...

View Article
Browsing all 24370 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>