A Gentle Introduction to NumPy Arrays in Python

Last Updated on November 29, 2019

Arrays are the main data structure used in machine learning.

In Python, arrays from the NumPy library, called N-dimensional arrays or the ndarray, are used as the primary data structure for representing data.

In this tutorial, you will discover the N-dimensional array in NumPy for representing numerical and manipulating data in Python.

After completing this tutorial, you will know:

  • What the ndarray is and how to create and inspect an array in Python.
  • Key functions for creating new empty arrays and arrays with default values.
  • How to combine existing arrays to create new arrays.

Kick-start your project with my new book Linear Algebra for Machine Learning, including step-by-step tutorials and the Python source code files for all examples.

Let’s get started.

A Gentle Introduction to N-Dimensional Arrays in Python with NumPy

A Gentle Introduction to N-Dimensional Arrays in Python with NumPy
Photo by patrickkavanagh, some rights reserved.

Tutorial Overview

This tutorial is divided into 3 parts; they are:

  1. NumPy N-dimensional Array
  2. Functions to Create Arrays
  3. Combining Arrays

To finish reading, please visit source site