numpy

Python package for numerical computing and array operations

brewmacoslinux
Try with needOr install directly
Source

About

Package for scientific computing with Python

Commands

numpy

Examples

Create and manipulate numerical arrays in Python$ python3 -c "import numpy as np; arr = np.array([1, 2, 3]); print(arr * 2)"
Perform mathematical operations on multi-dimensional arrays$ python3 -c "import numpy as np; matrix = np.array([[1, 2], [3, 4]]); print(np.dot(matrix, matrix))"
Generate random numbers and perform statistical analysis$ python3 -c "import numpy as np; data = np.random.randn(1000); print(f'Mean: {np.mean(data):.4f}, Std: {np.std(data):.4f}')"