Planet Python RSS
214 subscribers
17.1K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: Python Basics: Setting Up Python

Link: https://realpython.com/courses/setting-up-python/

Setting up Python is the first step to becoming a Python programmer. In this course, you’ll learn how to download and install Python for Windows, macOS, and Ubuntu Linux and how to open Python’s Integ
Python for Beginners: Introduction to Deque module in Python

Link: https://www.pythonforbeginners.com/deque/introduction-to-deque-module-in-python


Double ended queue or Deque is a linear data structure in which we can insert or remove elements from both its ends i.e. It supports last in first out (LIFO) operations as well as first in first out
PyCoder’s Weekly: Issue #476 (June 8, 2021)

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

#476 – JUNE 8, 2021 View in Browser » PEP 654: Exception Groups and except* Currently, Python’s exception handling mechanisms only allow you to focus on a single exception at a time. PEP 654, wh
AI Pool: Tensorflow 1.13 does not use GPU

Link: https://ai-pool.com/d/tensorflow-1-13-does-not-use-gpu

I'm using Keras 2.0 with TensorFlow 1.13 backend. I had to upgrade my Tensorflow. Solved all issues, but realized TensorFlow is not using GPU. Also CUDA_VISIBLE_DEVICES = 0 is set. When I try to print
AI Pool: Multiple Graphs in Tensorflow Session

Link: https://ai-pool.com/d/multiple_graphs_in_tensorflow_session

Is there a way to have multiple graphs in one TensorFlow session? I just want to separate my network and create 2 different graphs, cause I need to use one graph for its outputs, and the other for sav
AI Pool: Images in tensorboard

Link: https://ai-pool.com/d/images_in_tensorboard

I know that you can show your training result images inside Tensorboard, but can't find a way how to do it properly with Keras. What is the best way to show images? I'm using Keras 2.1.4 and Tens
AI Pool: Visualization with Seaborn

Link: https://ai-pool.com/a/s/visualization-with-seaborn

This article will enable you to use the seaborn python package to visualize your structured data with seaborn barchart, scatter plot, seaborn histogram, line, and seaborn distplot.
Daniel Roy Greenfeld: What's the best thing about working for Octopus Energy?

Link: https://daniel.feldroy.com/posts/whats-the-best-thing-about-working-for-octopus-energy-part-1

On November 16, 2020, I started my first day of employment at Octopus Energy. Here's why I love working there.
The Tech Stack
The entire tech stack is built on things I know. Python, Django, AWS, and
Podcast.__init__: Keep Your Analytics Lint Free With SQLFluff

Link: https://www.pythonpodcast.com/sqlfluff-sql-linter-episode-318/

The growth of analytics has accelerated the use of SQL as a first class language. It has also grown the amount of collaboration involved in writing and maintaining SQL queries. With collaboration come
Python Software Foundation: The 2021 Python Language Summit: Lightning Talks, Round 2

Link: http://feedproxy.google.com/~r/PythonSoftwareFoundationNews/~3/YhpQywGg83E/the-2021-python-language-summit.html

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
Real Python: Python's filter(): Extract Values From Iterables

Link: https://realpython.com/python-filter-function/

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 fi
Python Morsels: What is a decorator?

Link: https://www.pythonmorsels.com/topics/what-is-a-decorator/




Transcript
A decorator is a function that accepts a function and returns a function.
Decorators accept a function and return a function
We've defined an is_prime function here:
>>> def is_prime(num
Python Bytes: #237 Separate your SQL and Python, asynchronously with aiosql

Link: https://pythonbytes.fm/episodes/show/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>
<br>

<p><strong>About the show</strong></p>
AI Pool: How to calculate the size of a video in OpenCV?

Link: https://ai-pool.com/d/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....
AI Pool: How to install Tensorflow on windows with anaconda?

Link: https://ai-pool.com/d/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....
John Ludhi/nbshare.io: How To Convert Python List To Pandas DataFrame

Link: https://www.nbshare.io/notebook/917862980/How-To-Convert-Python-List-To-Pandas-DataFrame/








How To Convert Python List To Pandas Dataframe








Pandas dataframe is a very useful data structure.








In this notebook, I will show with examples how to convert Python List to Pandas
death and gravity: Python sentinel objects, type hints, and PEP 661

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

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

Link: https://www.pythonforbeginners.com/files/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 us