NumPy Tutorial¶
NumPy is the foundation of numerical Python. Almost every data-science and ML library — Pandas, scikit-learn, TensorFlow, PyTorch, OpenCV — is built on top of it. Learn NumPy once and the rest of the Python data stack opens up.
This tutorial is beginner-friendly — every code example has a ▶ Run button so you can execute Python right in your browser, edit the code, and see the output immediately.
Topics¶
How this tutorial is organized¶
Every chapter follows the same beginner-friendly format:
- Short intro — what the concept is and why it matters.
- Runnable code blocks — click ▶ Run to execute. Edit and re-run freely.
- Common pitfalls — what beginners get wrong.
- Cheatsheet — quick reference at the end.
- Next link — pointer to the next chapter.
Prerequisites¶
- Python basics — lists, loops, functions.
- No math background needed (we explain everything).
What you'll be able to do after this¶
- Manipulate any numerical array efficiently in Python.
- Read and write code from any data science / ML library.
- Apply broadcasting tricks to avoid loops.
- Compute statistics, solve linear systems, generate random samples.
- Build the foundational skill behind Pandas, scikit-learn, and PyTorch.
Ready? → Start with Introduction