Professional Documents
Culture Documents
: 01
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]].
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].