How to Use Numpy vstack

In this tutorial, I’ll explain how to use the NumPy vstack function, which is also called numpy.vstack or np.vstack. This is a very simple NumPy function, but in case you’re more of a beginner, this tutorial will explain almost everything you need to know. It will give you a quick background to NumPy, explain the … Read more

How to Use Pandas Query

This tutorial will show you how to use the Pandas query method to subset your data. The tutorial will explain the syntax and also show you step-by-step examples of how to use the Pandas query method. If you need something specific (like help with syntax, examples, etc), you can click on one of the following … Read more

How to Use Numpy Empty

An image that shows how NumPy empty creates an 'empty' NumPy array.

This tutorial will explain the NumPy empty function (AKA np.empty) and will show you how to create an empty array in NumPy. The tutorial assumes that you have somewhat limited experience with NumPy. As such, it starts with a quick review of NumPy, then proceeds to an explanation of the NumPy empty function. Later, the … Read more

How to Use Numpy Full

This tutorial will explain how to use he Numpy full function in Python (AKA, np.full or numpy.full). Numpy full creates a Numpy array filled with the same value At a high level, the Numpy full function creates a Numpy array that’s filled with the same value. It’s a fairly easy function to understand, but you … Read more

How To Use Numpy Tile

This tutorial will explain how to use the NumPy tile function (AKA, np.tile or numpy tile). Without getting into any of the details yet, let me explain what NumPy tile does. NumPy tile creates a new array by repeating an input array At a very high level, the NumPy tile function creates a new NumPy … Read more

How to use numpy repeat

This tutorial will explain how to use the NumPy repeat function, which is also called np.repeat or numpy.repeat. Numpy repeat repeats the elements of an array The NumPy repeat function essentially repeats the numbers inside of an array. It repeats the individual elements of an array. Having said that, the behavior of NumPy repeat is … Read more

Numpy square root explained

This tutorial will cover the NumPy square root function, which is also called numpy.sqrt or np.sqrt. This is a fairly easy NumPy function to understand and use, but for the sake of helping true beginners, this tutorial will break everything down. I’ll quickly review NumPy, I’ll explain the syntax, and I’ll show you some examples. … Read more

How to Use Numpy Exponential

This tutorial will explain how to use the NumPy exponential function, which syntactically is called np.exp. This is a very simple function to understand, but it confuses many people because the documentation is a little confusing. It seems particularly confusing for beginners. With that in mind, this tutorial will carefully explain the numpy.exp function. We’ll … Read more

How to use NumPy hstack

In this tutorial, I’m going to show you how to use the NumPy hstack function, which is also called np.hstack or numpy.hstack. This is a very simple tool that we use to manipulate NumPy arrays. Specifically, we use np.hstack to combine NumPy arrays horizontally. The function “stacks” arrays in the horizontal direction. Again, this is … Read more