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 quick review of NumPy why we use np.random.choice the syntax of NumPy … Read more

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 different kinds of arrays in Python. The … Read more

How to use the NumPy max function

This tutorial will show you how to use the NumPy max function, which you’ll see in Python code as np.max. At a high level, I want to explain the function and show you how it works. That being the case, there are two primary sections in this tutorial: the syntax of NumPy max, and examples … Read more

How to make a matplotlib bar chart

In this tutorial, you’ll learn how to create a matplotlib bar chart. Specifically, you’ll learn how to use the plt.bar function from pyplot to create bar charts in Python. Bar charts in Python are a little challenging I’ll be honest … creating bar charts in Python is harder than it should be. People who are … Read more

How to use the NumPy median function

This tutorial will show you how to use the NumPy median function, which we often call np.median. This tutorial will teach you a few things. First, it will show you how the NumPy median function works syntactically. We’ll cover the basic syntax and parameters of the np.median function. I’ll also show you some examples of … Read more