Select Page
Numpy square root explained

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...

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...

read more
A quick introduction to the numpy power function

A quick introduction to the numpy power function

This tutorial will explain how to use the NumPy power function, which is also called np.power. Contents: An review of NumPy Introduction to numpy.power The syntax of numpy.power Examples of NumPy power Frequently asked questions about NumPy power You can click on any...

read more
How to use NumPy hstack

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...

read more
How to use NumPy random choice

How to use NumPy random choice

This tutorial will explain the NumPy random choice function which is sometimes called np.random.choice or numpy.random.choice. I recommend that you read the whole blog post, but if you want, you can skip ahead. Here are the contents of the tutorial ... Contents: a...

read more
A quick guide to NumPy sort

A quick guide to NumPy sort

This tutorial will show you how to use the NumPy sort method, which is sometimes called np.sort or numpy.sort. As the name implies, the NumPy sort technique enables you to sort NumPy arrays. So, this blog post will show you exactly how to use the technique to sort...

read more
NumPy random seed explained

NumPy random seed explained

In this tutorial, I'll explain how to use the NumPy random seed function, which is also called np.random.seed or numpy.random.seed. The function itself is extremely easy to use. However, the reason that we need to use it is a little complicated. To understand why we...

read more
How to make a matplotlib line chart

How to make a matplotlib line chart

In this tutorial, I'll show you how to make a simple matplotlib line chart. Essentially, I'll show you how to use the plt.plot function from pyplot to create a line chart. Line charts are a little confusing in Python I'll be honest. Creating a line chart in Python is...

read more