The fundamental package for numerical computing in Python, providing multi-dimensional arrays and fast operations.
Official docs: https://numpy.org/doc/ Search patterns: np.array, np.zeros, np.dot, np.linalg, np.random, np.broadcast
| Create arrays | array, zeros, ones | np.array([1, 2, 3]) | | Mathematical ops | +, , sin, exp | np.sin(arr) | | Linear algebra | dot, linalg.inv | np.dot(A, B) | | Statistics | mean, std, percentile | np.mean(arr) | | Random numbers | random.rand, random.normal | np.random.rand(10) | | Indexing | [], boolean, fancy | arr[arr > 0] |
Comprehensive guide for NumPy - the fundamental package for scientific computing in Python. Use for array operations, linear algebra, random number generation, Fourier transforms, mathematical functions, and high-performance numerical computing. Foundation for SciPy, pandas, scikit-learn, and all scientific Python. Source: tondevrel/scientific-agent-skills.