🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Python Intermediate

What is NumPy?

A fundamental library for numerical computing in Python, providing efficient multi-dimensional arrays and mathematical operations.

NumPy (Numerical Python) provides the ndarray — a fast, memory-efficient array type for numerical operations. Operations on NumPy arrays are vectorized (no explicit loops needed), making them 10-100x faster than Python lists for numerical work.

Key features include broadcasting (operations on arrays of different shapes), linear algebra (np.linalg), random number generation, Fourier transforms, and integration with C/Fortran libraries. NumPy is the foundation for SciPy, Pandas, scikit-learn, and TensorFlow.

Related Terms

Docstring
A string literal placed as the first statement in a module, class, or function to document its purpose and usage.
Pytest
A testing framework for Python that simplifies writing and running tests with powerful features like fixtures and parametrize.
Pip Requirements File
A text file listing Python package dependencies with version specifications for reproducible project installations.
Python Wheel
A built distribution format (.whl) that allows faster installation of Python packages by avoiding the need for compilation.
Context Manager
An object that manages resources by defining setup and cleanup actions using the with statement.
Slots
A class mechanism that restricts attribute creation and reduces memory usage by using a fixed set of instance variables.
View All Python Terms →