Skip to content

Xylambda/numpy_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NumPy Tutorial

This repository provides a simple introduction to NumPy.

What and why 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.

Contents

Each lesson is contained in a single jupyter notebook.

  1. Array creation
  2. Data access
  3. Shape manipulation
  4. Operations on arrays
  5. Advanced indexing and masking
  6. Views and copies
  7. Random numbers

How do I use this repo?

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.

About

A short introduction to NumPy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published