ASSIGNMENT - 4, GO_STP_8113
GO_STP_8113 Assignment - 4 Goeduhub Technologies Task link : https://www.goeduhub.com/11546/question-exercise-practice-solutions-science-machine-learning #OnlineSummerTraining #machinelearning #datascience #PYTHONNUMPY #pandas #pythonprogramming #goeduhub SOLUTIONS: Import the numpy package under the name np and Print the numpy version and the configuration import numpy as np print(np.__version__) np.show_config() 2. Create a null vector of size 10 import numpy as np print(np.zeros(10)) 3. Create Simple 1-D array and check type and check data types in array import numpy as np a = np.arange(0, 10) print(type(a)) print(a.dtype) 4. How to find number of dimensions, bytes per element and bytes of memory used? import numpy as np a = np.arange(0, 10) print(a.ndim) print(a.itemsize) print(a.nbytes) 5. Create a null vector of size 10 but the fifth value which is 1 import numpy as np a = np.zeros(10) a[4]=1 print(a) 6. Create a vector w...