NumPy
The NumPy library is the core library for scientific computing in Python.
Importing NumPy
Data Types
np.int64
: Signed 64-bit integer typesnp.float32
: Standard double-precision floating pointnp.complex
: Complex numbers represented by 128 floatsnp.bool
: Boolean type storing TRUE and FALSE valuesnp.object
: Python object typenp.string_
: Fixed-length string typenp.unicode_
: Fixed-length unicode type
Creating Arrays
Array Creation
Initial Placeholders
Array Mathematics
Arithmetic Operations
Comparison
Aggregate Functions
Array Manipulation
Copying Arrays
Sorting Arrays
Array Shape Manipulation
Adding/Removing Elements
Combining Arrays
Splitting Arrays
I/O Operations
Saving & Loading On Disk
Saving & Loading Text Files
Inspecting Your Array
Getting Help
Last updated on