You are on page 1of 4

Assignment No.

: 01

Name: G Khirasindhu Redy Year: 3rd

Registration No.: 180101120053 Section: Group-2

Branch: CSE Campus: PKD

Assignment Topic: Assignment of Numpy

Software Used: Jupyter Notebook / Google Colab

1) Write the functions of Numpy library.

2) Swap two columns in a 2-D numpy array. Given 2-D array is [[1, 2, 3], [4, 5, 6]].

3) Swap two rows in a 2-D numpy array. Given 2-D array is [[1, 2, 3], [4, 5, 6]].
4) Reverse the rows of a 2-D array. Given 2-D array is [[1, 2, 3], [4, 5, 6]].

5) Reverse the columns of a 2-D array. Given 2-D array is [[1, 2, 3], [4, 5, 6]].

6) Create a 2-D array containing random floats between 5 and 10.

7) Find the attributes of the given array [[[1, 2, 3], [4, 5, 6]], [[1, 2, 3], [4, 5, 6]]].
8) Split the 2-D array into three 2-D arrays. Given 2-D arrays [[1, 2], [3, 4], [5, 6], [7, 8], [9, 10],
[11, 12]].

9) Split the 2-D array into three 2-D arrays along rows. Given 2-D arrays [[1, 2, 3], [4, 5, 6], [7, 8,
9], [10, 11, 12], [13, 14, 15], [16, 17, 18]].

10) Replace the even number with 9 from the given array. Given array is [1, 2, 3, 4, 5, 6, 7, 8, 9,
10].

You might also like