Numpy Save, Explained

An image that shows how Numpy save "saves" Numpy array data to a .npy file format.

This tutorial will show you how to save your Numpy datasets with Numpy save. It explains what the function does, explains the syntax, and shows step-by-step examples of how to use np.save. If you need something specific, you can just click on any of the following links. Table of Contents: Introduction Syntax Examples Frequently Asked … Read more

Numpy Meshgrid, Explained

A simple example that shows and explains how Numpy meshgrid inputs 1D arrays of coordinates, and outputs Numpy arrays with values that serve as coordinates for a grid-like Euclidean space.

This tutorial will show you how to use Numpy meshgrid. It will explain what the meshgrid function does, explain the syntax, and show you clear examples to help develop your intuition for how this technique works. If you need something specific, you can click on any of the following links. Table of Contents: Introduction Syntax … Read more

Numpy Ravel, Explained

An image that shows how Numpy ravel flattens a Numpy array.

This tutorial will show you how to use the Numpy ravel function. It will explain the syntax of the function and show you how to use Numpy ravel to flatten an array. The following is a table of contents. If you’re looking for something specific, you can click on any of the links to jump … Read more

Pandas isna, Explained

A simple example of Pandas isna detecting missing values in Python data.

In this blog post, I’ll explain how to use the Pandas isna technique. I’ll describe what the technique does, explain the syntax, and I’ll show you clear examples of how to use it. If you need to learn something specific, just click on one of these links: Table of Contents: Introduction Syntax Examples Frequently Asked … Read more

A Quick Introduction to Numpy Random Normal

An image normally distributed data created with np.random.normal in Python.

This tutorial will cover the Numpy random normal function (AKA, np.random.normal). If you’re doing any sort of statistics or data science in Python, you’ll often need to work with random numbers. And in particular, you’ll often need to work with normally distributed numbers. The Numpy random normal function generates a sample of numbers drawn from … Read more

How to Use Pandas Get Dummies in Python

An image that shows how the Pandas get dummies function creates dummy variables from categorical data, in Python.

In this tutorial, I’ll show you how to use the Pandas get dummies function to create dummy variables in Python. I’ll explain what the function does, explain the syntax of pd.get_dummies, and show you step-by-step examples. If you need something specific, just click on any of the following links. Table of Contents: Introduction Syntax Examples … Read more

How to Use the Pandas Astype Function in Python

A simple image that shows how the Pandas astype method changes the datatype of Pandas dataframes or Series objects.

In this tutorial, I’ll explain how to use the Pandas astype function to modify the datatype of Pandas dataframe columns and Pandas objects. I’ll explain what the technique does, explain the syntax, and show you step-by-step examples. If you need something specific, you can click on any of the following links. Table of Contents: Introduction … Read more

How to Use the Numpy Maximum Function

An image that shows how the Numpy maximum function computes the element-wise maximum of two Numpy arrays.

In this tutorial, I’ll explain how to use the Numpy maximum function to compute the element-wise maxima of two Numpy arrays. I’ll explain the syntax of np.maximum, how the function works, and how to use it. If you need something specific, just click on any of the following links. Table of Contents: Introduction to Numpy … Read more