NumPy: The Foundation of Scientific Python
Shriira Press
A comprehensive, self-contained guide to NumPy, the library at the very bottom of the Python scientific, data, and machine-learning stack — the one…
Welcome to NumPy: The Foundation of Scientific Python.
A comprehensive, self-contained guide to NumPy, the library at the very bottom of the Python scientific, data, and machine-learning stack — the one almost every other tool is built on. NumPy provides the ndarray, a fast, n-dimensional array, and the vectorized operations to compute on it in compiled code. When pandas holds a column, Matplotlib plots a curve, scikit-learn trains a model, or PyTorch moves a tensor, there is a NumPy array (or its direct descendant) underneath. This book teaches it from first principles: the ndarray and why it's fast, creating and indexing arrays, vectorization, broadcasting, aggregations and the axis concept, reshaping, linear algebra, random numbers, and performance. It blends intuition, the concepts behind the API, and runnable code.
This title is part of the ShriIra library and is free to read in full, right here — our small contribution to making world-class knowledge easy to reach.
A note on reading it: open the Contents menu at the top of the reader to jump between chapters, use the Aa menu to set a comfortable text size, theme (light, sepia, or night), and single- or two-page layout. Your place is saved automatically, so you can always pick up where you left off.
We hope it serves you well.
— Shriira Press