Create a 3×4 array (3 rows and 4 columns) and perform the following: (Points: 30) • Use reshaping to convert the above array into 4×3 array
Homework Problem:
Problem 1: Create a 3×4 array (3 rows and 4 columns) and perform the following: (Points: 30) • Use reshaping to convert the above array into 4×3 array • Flatten the array by using Nu mpy flatten method
Problem 2; Create two arrays with fwe elements each and perform horizontal and vertical stacking. [Points: 25]
Problem 3: Consider the following array element as recorded temperature of 7 days in 3 different cities. Answer the following questions using NumPy min and max functions: [Points: 45]
IMG_0765Download
Answer preview for Create a 3×4 array (3 rows and 4 columns) and perform the following: (Points: 30) • Use reshaping to convert the above array into 4×3 array
280 Words