
NumPy
Nearly every scientist working in Python draws on the power of NumPy. NumPy brings the computational power of languages like C and Fortran to Python, a language much easier to learn …
NumPy - Installing NumPy
The only prerequisite for installing NumPy is Python itself. If you don’t have Python yet and want the simplest way to get started, we recommend you use the Anaconda Distribution - it includes Python, …
NumPy Documentation
NumPy 1.20 Manual [HTML+zip] [Reference Guide PDF] [User Guide PDF] NumPy 1.19 Manual [HTML+zip] [Reference Guide PDF] [User Guide PDF] NumPy 1.18 Manual [HTML+zip] [Reference …
numpy.where — NumPy v2.3 Manual
numpy.where # numpy.where(condition, [x, y, ]/) # Return elements chosen from x or y depending on condition.
NumPy - Learn
Below is a curated collection of educational resources, both for self-learning and teaching others, developed by NumPy contributors and vetted by the community.
Array creation — NumPy v2.3 Manual
The following lists the ones with known Python libraries to read them and return NumPy arrays (there may be others for which it is possible to read and convert to NumPy arrays so check the last section …
numpy.random.rand — NumPy v2.3 Manual
That function takes a tuple to specify the size of the output, which is consistent with other NumPy functions like numpy.zeros and numpy.ones. Create an array of the given shape and populate it with …
NumPy user guide — NumPy v2.3 Manual
NumPy user guide # This guide is an overview and explains the important features; details are found in NumPy reference.
The N-dimensional array (ndarray) — NumPy v2.3 Manual
NumPy is flexible, and ndarray objects can accommodate any strided indexing scheme. In a strided scheme, the N-dimensional index (n 0, n 1,, n N 1) corresponds to the offset (in bytes):
numpy.reshape — NumPy v2.3 Manual
NumPy reference Routines and objects by topic Array manipulation routines numpy.reshape