Planet Python RSS
214 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python Morsels: Truthiness

Link: https://www.pythonmorsels.com/topics/truthiness/





Transcript
Let's talk about truthiness in Python.
If statements check truthiness
We have a list of numbers:
>>> numbers = [2, 1, 3, 4, 7]

and we have an if statement that either prints yes or no
Programiz: Python Program to Create Pyramid Patterns

Link: https://www.programiz.com/python-programming/examples/pyramid-patterns

In this example, you will learn to print half pyramids, inverted pyramids, full pyramids, inverted full pyramids, Pascal's triangle, and Floyd's triangle in Python Programming.
Programiz: Python Program to Access Index of a List Using for Loop

Link: https://www.programiz.com/python-programming/examples/index-for-loop

In this example, you will learn to access the index of a list using a for loop.
Programiz: Python Program to Make a Flattened List from Nested List

Link: https://www.programiz.com/python-programming/examples/flatten-nested-list

In this example, you will learn to make a flattened list from a nested list in Python.
Real Python: The Real Python Podcast – Episode #54: Building a Neural Network and How to Write Tests in Python

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

Do you know how a neural network functions? What goes into building one from scratch using Python? This week on the show, David Amos is back, and he's brought another batch of PyCoder's Weekly article
Stack Abuse: Matplotlib Scatter Plot with Distribution Plots (Joint Plot) - Tutorial and Examples

Link: https://stackabuse.com/matplotlib-scatter-plot-with-distribution-plots-histograms-jointplot/

Introduction
There are many data visualization libraries in Python, yet Matplotlib is the most popular library out of all of them. Matplotlib’s popularity is due to its reliability and utility - it's
PyBites: And now for something completely different... MicroPython!

Link: https://pybit.es/micropython.html

Don't ask why, don't ask how, but I recently found myself purchasing a bunch of microcontrollers and circuitboards again!
Today, I'll take you with me on my path through the circuits of the ESP32-CAM!
Ben Cook: SageMaker Studio Quick Start

Link: https://jbencook.com/sagemaker-studio-quick-start/

A step-by-step quick start guide for SageMaker Studio. Start a Studio session, launch a notebook on a GPU instance and run object detection inference with a detectron2 pre-trained model.
The post Sage
Ben Cook: NumPy Meshgrid: Understanding np.meshgrid()

Link: https://jbencook.com/numpy-meshgrid/

You can create multi-dimensional coordinate arrays using the np.meshgrid() function, which is also available in PyTorch and TensorFlow. But watch out! PyTorch uses different indexing by default so the
Ben Cook: Linear Interpolation in Python: An np.interp() Example

Link: https://jbencook.com/numpy-interpolate/

It's easy to linearly interpolate a 1-dimensional set of points in Python using the np.interp() function from NumPy.
The post Linear Interpolation in Python: An np.interp() Example appeared first on j
Ben Cook: Filtering DataFrames with the .query() Method in Pandas

Link: https://jbencook.com/pandas-query/

Pandas provides a .query() method on DataFrame's with a convenient string syntax for filtering DataFrames. This post describes the method and gives simple usage examples.
The post Filtering DataFrames
Ben Cook: Binary Cross Entropy Explained

Link: https://jbencook.com/binary-cross-entropy/

A simple NumPy implementation of the binary cross entropy loss function and some intuition about why it works.
The post Binary Cross Entropy Explained appeared first on jbencook.