Numpy Savez, Explained

An image that shows how Numpy savez saves multiple Numpy arrays to a single .npz file.

This tutorial will show you how to save multiple Numpy datasets in a single .npz file with Numpy savez. It explains what the np.savez does, explains the syntax, and shows step-by-step examples of how to use Numpy savez. If you need something specific, just click on any of the following links. Table of Contents: Introduction … Read more

Numpy Loadtxt, Explained

An image that shows how Numpy loadtxt loads stored text date into a Numpy array.

This tutorial will show you how to use Numpy loadtxt to load numeric data stored in a text file into a Numpy array. The tutorial explains what the function does, explains the syntax, and shows step-by-step examples of how to use np.loadtxt. If you need something specific, you can click on any of the following … Read more

Numpy Savetxt, Explained

An image that shows how Numpy savetxt saves a Numpy array to a text file.

This tutorial will show you how to save your Numpy arrays to a text file using Numpy savetxt. The tutorial explains what the function does, explains the syntax, and shows step-by-step examples of how to use np.savetxt. If you need something specific, you can click on any of the following links. Table of Contents: Introduction … Read more

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

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 Numpy Argsort in Python

An image that shows how Numpy Argsort returns the index values that would sort a Numpy array.

This tutorial explains how to use the Numpy argsort function. It explains the syntax of np.argsort, and also shows clear examples. If you need help with something specific, you can click on any of these links. The links will take you to the appropriate part of the tutorial. Table of Contents: Introduction to Numpy Argsort … Read more