A Gentle Introduction to NumPy Arrays in Python
![](https://www.deeplearningdaily.com/wp-content/uploads/2020/09/a-gentle-introduction-to-numpy-arrays-in-python_5f61c5ff49b3f-600x297.jpeg)
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](https://3qeqpr26caki16dnhd19sv6by6v-wpengine.netdna-ssl.com/wp-content/uploads/2018/01/A-Gentle-Introduction-to-N-Dimensional-Arrays-in-Python-with-NumPy.jpg)
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:
- NumPy N-dimensional Array
- Functions to Create Arrays
- Combining Arrays