"That was my first step... now I know far beyond this, as that notes was starting."
These notes are a guide to NumPy, the fundamental library for numerical computing in Python.
It covers everything from basic array operations to advanced features like vectorization, masking, and saving/loading arrays.
These notes were created as part of my journey to learn Python for data analysis and scientific computing.
Yuvraj
Skills: Python | NumPy | Data Analysis | Vectorization | Scientific Computing
- Element-wise operations
- Timing comparisons: Python lists vs NumPy arrays
- Zeros, ones, full, random arrays
- arange, identity matrices
- Vectors, matrices, 3D tensors
- Shape, dimensions, data type, size, item size, total bytes
- Reshape, flatten, ravel, transpose
- 1D and 2D indexing
- Row, column, and element selection
- Sorting arrays
- Unique elements
- Row-wise and column-wise sorting
- Boolean indexing
- Fancy indexing
np.wherefor conditional selection
- Concatenation
- Deleting elements
- Element-wise addition and multiplication
- Dot product
- Matrix multiplication using
@
- Using
np.vectorizeto apply functions element-wise
- Save arrays with
np.saveand load them withnp.load
my_array.npy(saved array example)
"That was my first step... now I know far beyond this, as that notes was ending."