How to Make a Seaborn Histogram

An image of a Python histogram, plotting normally distributed data.

This tutorial will show you how to make a Seaborn histogram with the sns.histplot function. I’ll explain the syntax of sns.histplot but also show you clear, step by step examples of how to make different kinds of histograms with Seaborn. The tutorial is divided up into several different sections. You can click on one of … Read more

A Quick Introduction to Dplyr

An image that shows some dplyr code.

There’s sort of an open secret in the data science world: As a data professional, you’ll spend a huge amount of time doing data preparation. Cleaning, joining, reshaping, aggregating … These tasks make up a huge amount of your data work. Many data professionals say as much as 80%. You Need to Master Data Manipulation … 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

Pandas Sample, Explained

In this tutorial, I’ll show you how to use the Pandas sample technique to retrieve a random sample from a Python dataframe. I’ll explain what Pandas sample does, I’ll explain the syntax, and I’ll show you step-by-step examples of how to use this technique. You can click on any of the following links, and it … 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