This repository provides a simple introduction to NumPy.
NumPy is the fundamental package in Python for numerical computing, offering significant advantages in performance and memory efficiency. Its arrays are implemented in C, enabling faster execution compared to native Python lists.
NumPy uses contiguous memory allocation and supports vectorized operations, reducing the need for explicit Python loops and minimizing overhead.
Additionally, its optimized memory management and ability to handle large datasets efficiently make it an essential tool for scientific computing, data analysis, and machine learning.
Each lesson is contained in a single jupyter notebook.
- Array creation
- Data access
- Shape manipulation
- Operations on arrays
- Advanced indexing and masking
- Views and copies
- Random numbers
You need to install numpy
and jupyter notebook
. Using pip
as package manager:
pip install numpy jupyter notebook
Then, clone the repository and open its contents with your favourite code editor.
git clone https://github.com/Xylambda/numpy_tutorial.git
Read notebooks in order and execute cells one at a time, studying the output as well as the code.