Numpy All, Explained

An image showing np.all testing if all elements are True.

In this tutorial, I’ll explain how to use the Numpy all function (AKA, np.all). I’ll explain the what this function does, how the syntax works, and I’ll show you clear, step-by-step examples of how to use it. If you need something specific, just click on any of the following links. The link will take you … Read more

np.random.rand Explained

An image that shows how np.random.rand generates numbers from the standard uniform distribution.

In this tutorial, I’ll show you how to use the np.random.rand function (AKA, Numpy random rand) to create Numpy arrays filled with random uniform numbers. I’ll explain exactly what this function does, how the syntax works, and I’ll show you step-by-step examples of how to use it. If you need something specific, you can click … Read more

How to Use np.random.uniform

An image that shows a uniform probability distribution, and explains that Numpy random uniform creates Numpy arrays drawn from the uniform distribution in Python.

In this tutorial I’ll show you how to use the np.random.uniform function (AKA, Numpy random uniform). I’ll explain what the function does, explain the syntax, and show you clear examples of how the function works. If you need something specific, you can click on any of the following links and it will take you to … Read more

Numpy Argmax, Explained

Numpy argmax gets the index of the maximum value of a Numpy array.

This tutorial explains how to use the Numpy argmax function. It explains the syntax of np.argmax, and also shows step-by-step examples. You can click on any of the links below, and it will take you to the appropriate section of the tutorial. Table of Contents: Introduction to Numpy Argmax Syntax Examples Having said that, if … Read more

How to Use Numpy Round

An image that shows a simple example of how Numpy round works.

In this tutorial I’ll explain how to use the Numpy round function (AKA, np.round). I’ll explain how the function works, and I’ll also show you some step-by-step examples of how to use it. Table of Contents: A Quick Introduction to Numpy Round The syntax of np.round Numpy Round examples You can click on any of … Read more

np.random.randn Explained

An image that shows how numpy.random.randn generates numbers from the standard normal distribution, with a mean of 0 and a standard deviation of 1.

In this tutorial, I’ll explain how to use the np.random.randn function (AKA, Numpy random randn). The tutorial is divided up into several different sections, including a quick overview of what the function does, an explanation of the syntax, and a section that shows step-by-step examples. You can click on any of the following links and … Read more

Numpy Floor, Explained

An image that shows using np.floor to compute the floor of the values in a Numpy array.

In this tutorial, I’ll explain how to use the Numpy floor function, which is sometime called np.floor. I’ll explain the syntax of np.floor and how the function works. I’ll also show you clear, step by step examples of how to use it. If you need something specific, you can click on any of the following … Read more

Numpy Square, Explained

An image that shows Numpy square computing the squares of the values in a Numpy array.

In this tutorial, I’ll show you how to use the Numpy square function, which is sometimes called np.square. The Numpy square function is fairly straight forward, but in the tutorial, we’ll explain everything step by step. You’ll learn about how the syntax works, and we’ll also show you some clear examples. Table of Contents: A … Read more