NumPy
Master fast numerical Python — the ndarray, indexing and broadcasting, vectorised operations, linear algebra, random simulation, statistics and real-world array work.
Your progress
0 / 25 chapters
0%
01
Foundations
The ndarray, creating arrays, dtypes and inspection.
- 9mWhy NumPyWhat NumPy is, why it exists, and why it underpins the entire Python data stack.
- 10mThe ndarrayNumPy's core object — the n-dimensional array of same-typed values.
- 10mCreating ArraysThe constructors you reach for constantly — zeros, ones, arange, linspace, eye and random.
- 9mData Types (dtype)Why every array has a single dtype, how to choose it, and how type promotion works.
- 7mArray AttributesInspect any array with shape, ndim, size, dtype, itemsize and nbytes.
02
Indexing & Slicing
Select and modify parts of an array — including boolean masks and fancy indexing.
- 8mIndexingAccess single elements and rows in 1-D and multi-dimensional arrays.
- 9mSlicingTake sub-arrays with start:stop:step per axis — and assign through slices.
- 10mBoolean MaskingFilter arrays by condition — the single most useful NumPy technique.
- 8mFancy IndexingSelect arbitrary elements with arrays of indices, in any order.
- 8mViews vs CopiesKnow when an operation shares memory with the original — the source of many surprises.
03
Operations
Vectorised maths, ufuncs, broadcasting and aggregations.
- 9mVectorizationOperate on whole arrays at once instead of looping — the heart of NumPy.
- 8mUniversal FunctionsFast element-wise math functions — sqrt, log, exp, sin and friends.
- 11mBroadcastingCombine arrays of different shapes by virtually stretching the smaller one.
- 10mAggregations & AxesReduce arrays to summary numbers, and control which axis you collapse.
04
Manipulation
Reshape, combine, split, sort and search arrays.
- 9mReshapingChange an array's shape with reshape, ravel, transpose and newaxis.
- 8mCombining ArraysJoin arrays with concatenate, vstack, hstack and stack.
- 7mSplitting ArraysCut arrays apart with split, hsplit, vsplit and array_split.
- 9mSorting & SearchingSort arrays, get the sort order with argsort, and count uniques.
05
Numerical Computing
Linear algebra, random simulation, statistics and missing data.
- 11mLinear AlgebraMatrix products, solving systems, and the decompositions behind ML.
- 10mRandom & SimulationDraw from distributions and answer questions with Monte-Carlo simulation.
- 9mStatisticsDescribe data with means, percentiles, correlation and histograms.
- 9mMissing Data (NaN)Detect and handle NaN and infinity — essential data-cleaning hygiene.
06
Applied NumPy
Performance, file I/O, and NumPy on real data.
