This repository contains hands-on practice tasks to help you get started with NumPy, the powerful numerical computing library in Python. Whether you're a student, beginner in data science, or just brushing up your Python array skills, this collection of tasks covers key concepts with simple yet effective examples.
- Language: Python 3.8+
- Library: NumPy
| # | Description |
|---|---|
| 1 | Create array from 1 to 10 and display shape, size, and datatype |
| 2 | Create 2D array and show dimensions, shape, and sum |
| 3 | Multiply array of zeros and ones |
| 4 | Create and slice even number array |
| 5 | Reshape array and compute axis-wise sum |
| 6 | Create a 5×5 identity matrix |
| 7 | Generate random array and find min/max values and their indices |
| 8 | Use linspace to generate and round float numbers |
| 9 | Remove duplicates from an array |
| 10 | Perform addition, dot product, and element-wise multiplication on matrices |
-
Clone the repository
git clone https://github.com/harinandanmv/numpy-practice.git cd numpy-practice -
Install dependencies
pip install numpy
-
Run the Python script
python task_1.ipynb
Pull requests and suggestions are welcome!
Feel free to fork this repo, add new examples, or improve the existing ones with better explanations or visualizations!
✨ Happy Learning with NumPy!