Question: Please I need to fix this codes: 1. Write one statement into the next cell that creates a 7 x 6 (7 rows by 6
Please I need to fix this codes:
1. Write one statement into the next cell that creates a 7 x 6 (7 rows by 6 columns) ndarray of random numbers uniformly drawn from the range {0,1).
Import numpy as np
2. Write one statement into the next cell that creates a 7 x 6 (7 rows by 6 columns) ndarray of random numbers uniformly drawn from the Gaussin normal distribution with mean 0 and variance 1.
Np.random.seed(10)
## Start your new code here
## End of your code here
Print(a)
3. Write one statement into the next cell that slices out the row 3-5 and columns 2-4 of array a.
Np.random.seed(10)
4. Write one statement into the next cell that Write one statement into the next cell that element-wise add a and b.
## Start your new code here
## End of your code here
Print(c)
5. Write one statement into the next cell that produce the transpose of a.
## Start your new code here
## End of your code here
Print(d)
6. Write one statement into the next cell that does matrix multiplication of e and b.
## Start your new code here
## End of your code here
Print(e)
7. Write one statement into the next cell that reshapes the array f into a new shape of 12 x 3.
## Start your new code here
## End of your code here
Print(f)
8. Write one statement into the next cell that multiple array g with the scaler 3.
## Start your new code here
## End of your code here
Print(g)
9. Write one statement into the next cell that adds a new column of all 1 into the array h, the newly added column of 1 becomes the $0$th column.
## Start your new code here
## End of your code here
Print(h)
10.
Hint: Use np.insert() method. Search and read the APIs document.
## Start your new code here
## End of your code here
Print(i)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
