In this task, I explored various NumPy functions, operations, and concepts as part of my learning.
array()zeros()ones()arange()reshape()np.random.rand()np.random.randint()
Practiced selecting elements, rows, and columns using:
- Simple indexing
- Slicing (
:operator)
- Sorting and Concatenation
ndim→ Number of dimensionssize→ Total number of elementsshape→ Dimensions of the array
min()→ Finds minimum valuemax()→ Finds maximum valuemean()→ Calculates mean valuemedian()→ Calculates median value
Practiced masking using comparison operators:
<,<=,>,>=
📘 Summary:
This task helped me strengthen my understanding of NumPy fundamentals — from creating arrays to performing operations and masking elements effectively.