Introduction
Array creation
np.array()
- Create a NumPy arraynp.zeros()
- Create an array of zerosnp.ones()
- Create an array of onesnp.random.rand()
- Create an array of random values
Universal
Functions
File I/O
Linear Algebra
Random Number
Generation
Miscellaneous
Array Operations
Basic Operations
Advanced Operations
Data Types
Data Types
Type Conversion
Hyperbolic
Functions
sinh()
- Compute the hyperbolic sine of an array
Array
Manipulation
Reshaping arrays
reshape()
- Changing the shape of an arrayflatten()
- Flattening an arrayravel()
- Flattening an array, returning a 1D array
Concatenating arrays
concatenate()
- Joining multiple arrays togetherstack()
- Stacking arrays along a new axishstack()
- Stacking arrays horizontally (column-wise)vstack()
- Stacking arrays vertically (row-wise)
Fancy Indexing
Boolean indexing
Boolean array indexing - Selecting elements based on boolean conditions