Python Time Series Forecast – A Guided Example on Bitcoin Price Data

A Time Series is essentially a tabular data with the special feature of having a time index. The common forecast task is ‘knowing the past (and sometimes the present), predict the future’. This task, taken as a principle, reveals itself in several ways: in how to interpret your problem, in feature engineering, and in which … Read more

Plotly Dash Slider Component — Ultimate Guide

Welcome to the bonus content of “The Book of Dash“. πŸ€— Here you will find additional examples of Plotly Dash components, layouts and style. To learn more about making dashboards with Plotly Dash, and how to buy your copy of “The Book of Dash”, please see the reference section at the bottom of this article. … Read more

Plotting Vector Fields and Gradients for ANN Gradient Descent

πŸ‘‰ This is a follow-up article to Gradient Descent in Neural Nets – A Simple Guide to ANN Learning – Finxter, where a lightweight introduction to Gradient Descent is given. In this article, you will learn how to produce the graphs in that article, especially the vector fields! Data visualization is an enlightening task in … Read more

[Fixed] Matplotlib: TypeError: ‘AxesSubplot’ object is not subscriptable

Problem Formulation Say, you’re me πŸ‘±β€β™‚οΈ five minutes ago, and you want to create a Matplotlib plot using the following (genius) code snippet: If you run this code, instead of the desired plot, you get the following TypeError: ‘AxesSubplot’ object is not subscriptable: πŸ’¬ Question: How to resolve the TypeError: ‘AxesSubplot’ object is not subscriptable … Read more

How to Modify Images using Pillow

Problem Formulation and Solution Overview This article will show you how to use the Pillow Library in Python to modify and manipulate images. To make it more interesting, we have the following running scenario: Creative Prints is an online store accepting images from Photographers wishing to sell their art. The Manager would like you to … Read more

Plot Circle in Pyplot

How to Plot a Circle in Python? You can easily plot a circle in Matplotlib’s Pyplot library by calling plt.gca() to “get the current axis”. Then call the axis.add_patch() function and pass a plt.Circle() object into it. For example, the one-liner plt.gca().add_patch(plt.Circle((0.5, 0.5), 0.2, color=’lightblue’)) adds a lightblue circle to the plot at position x=0.5, … Read more

Blockchain Analytics: The Basics

Image source Blockchain. This new technology is changing the way transactions are recorded and verified, and it’s leading us into a new era with enticing promises: smart contracts, shared ledgers, immutable data records, and blockchain analytics. There are so many different ways to use this innovative blockchain analytics. Who wouldn’t want to know all about … Read more

How to Display a Progress Bar in Python

[😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁😁] 100% Problem Formulation and Solution Overview In this article, you’ll learn how to configure and display a progress bar. A progress bar is commonly used in Python or, for that matter, any other programming language to show the user an application’s progress. For example, an installation, a transferring of files, or any other commands. … Read more

Before After Image in Plotly Dash

πŸ’‘ This article will show you how to use the BeforeAfter image component in your Plotly Dash project. Dash book author Ann just created the following stunning web project visualizing before/after galaxy images from the James Webb Space Telescope in a simple and straightforward Dash app using the BeforeAfter component of the dash-extensions library. Before … Read more

NumPy Meshgrid – A Simple Guide with Video

In Python, the numpy.meshgrid() function turns coordinate vectors into coordinate matrices.  What’s the purpose of np.meshgrid()? The grid-like coordinate matrices separate the values for each dimension and are used widely in matrix manipulation, data visualization, and machine learning.  Here is the argument table of numpy.meshgrid(). If it sounds great to you, please continue reading, and … Read more