Product & software

NumPy

NumPy is a Python library centered on multidimensional arrays and numerical operations.

At a glance

Primary focus
Numerical arrays
Category
data science

Overview

NumPy is a Python library centered on multidimensional arrays and numerical operations. It provides an efficient representation for homogeneous data and a foundation used by many other scientific-computing and data-analysis libraries.

How it is used

Array operations can apply calculations across many values, while indexing and broadcasting control how shapes interact. These concepts let users express numerical work without writing every elementwise loop manually.

A useful distinction

Array shape and data type affect the meaning and result of an operation. Inspect both when debugging numerical code, particularly when broadcasting combines arrays of different dimensions.

Sources and review

MOOR's explanatory text is supported by the following source links.

  1. NumPy: official overview — NumPy
  2. NumPy: documentation and further reading — NumPy

Browse MOOR Knowledge