0% found this document useful (0 votes)
11 views1 page

Assignment of Numpy Question

The document outlines a series of tasks related to array manipulation, including creating, displaying, and modifying arrays of various shapes and sizes. It covers operations such as filling arrays with specific values, displaying elements based on conditions, and performing mathematical operations like squaring elements and calculating cumulative sums. Additionally, it includes tasks for reshaping, transposing, and splitting arrays, as well as concatenating multiple arrays.

Uploaded by

Haina Kherkatary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Assignment of Numpy Question

The document outlines a series of tasks related to array manipulation, including creating, displaying, and modifying arrays of various shapes and sizes. It covers operations such as filling arrays with specific values, displaying elements based on conditions, and performing mathematical operations like squaring elements and calculating cumulative sums. Additionally, it includes tasks for reshaping, transposing, and splitting arrays, as well as concatenating multiple arrays.

Uploaded by

Haina Kherkatary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Create an array of 10 elements with values 10 to 1

2. Create an array of 3 X 3 filled with value 10

3. Create an array of 20 elements with random numbers between 50 and 100

4. Create an array of 10 elements with values between 1 to 25 with uniform interval

5. Display last 2 rows of a 5,5 array

6. Display last 2 columns of 3rd to 5th rows

7. Display last column of all alternate rows

8. Display rows 0,3,4 and columns 1,3 of 5,5 array

9. Display all elements where number is even

10. Add 1 to all even numbers in the array

11. Store square of all elements in the array

12. Display cumulative sum of elements in array of 10 elements

13. Display where in a sorted array of 10 elements number 20 fits in

14. Display index for maximum and minimum value in an array of 10 elements

15. Display highest value in each row in 5,5 array

16. Display average of each row

17. Display all non-zero elements of a 5,5 array

18. Sort each row of a 5,5 array

19. Reshape an array of 2,6 to 3,4

20. Convert a 3,3 array to a single dimension array and create a copy

21. Reshape an array of 2,6 to 3,4 inplace

22. Create an array of 5,5 and transpose it

23. Split an array of 5,5 into three parts at 2nd and 4th rows

24. Concatenate two arrays of 3,3 and 4,3 into one array

25. Split an array of 6,6 into two parts horizontally

You might also like