Check missing values, clean a numeric extract, calculate summary measures, and export an auditable CSV.
Download runnable project pack ↗NumPy.
See the data move.
Practical numerical computing without unnecessary theory. Learn how arrays flow, change shape, get cleaned, and power analytics, simulations, images, and machine learning.
Start learning ↗One problem. One tool.
One useful result.
Every module starts with a real situation, shows the exact NumPy command, explains what changes, and ends with a guided challenge. Begin with the mindset, then work through any modules relevant to your job. The code runs in a local Python environment with NumPy installed.
In a terminal, use python -m pip install numpy. Then run a Python script or notebook. Each recipe includes its own inputs. Add import numpy as np at the top before running the examples.
python -m pip install numpy
python -c "import numpy as np; print(np.__version__)"See it before you code it.
These controls preview NumPy concepts in your browser. They don't run Python; the corresponding recipes in the lessons show the real NumPy syntax.
Broadcasting compatibility
Try shapes like (3, 1) and (1, 4). NumPy aligns dimensions from the right.
Rows, columns & axes
Sample array: [[12, 22, 36], [10, 20, 30], [8, 18, 28]]
Go from examples to working projects.
Each project has a fully runnable starter script in the downloadable project pack. Use these as building blocks, not production-ready financial predictions or complete machine-learning systems.
Simulate illustrative scenarios with reproducible randomness and communicate percentile-based uncertainty.
Download runnable project pack ↗Create and transform a small RGB image array using safe dtype conversions.
Download runnable project pack ↗Calculate a tiny forward pass and inspect feature and output dimensions.
Download runnable project pack ↗Build skill, not memorized syntax.
Use NumPy for dense numerical operations, Pandas for labeled tables and joins, and domain-specific packages when they better fit the work. Always validate shapes, units, missing values, dtype, and assumptions before trusting a result.
Further reading: Broadcasting · Copies and views · Random generators.
← Return to Python library