NumPy - Python Package For Data
NumPy - Python Package For Data
All
Which of the following are Python libraries used for Data Science ALL
Which of the following characters are used to represent an unordered list? ALL
Which of the following magic method list the history of input commands ?%history
Which of the following attribute returns total number of bytes consumed by a ndarray?nbytes
Which of the following attribute determine the number of dimensions of a ndarray? ndim
Which of the following is Ture about Numpy array data elements?Data elements are of same type and of
fixed size
What is the output of the following code? import numpy as np x = np.array([[3.2, 7.8, 9.2], 8
What is the output of the following code? import numpy as np y = np.array([3+4j, 0.4+7.8j]) complex128
Which of the following attribute returns the number of elements in each dimension of a multi
dimensional array? shape
What is the output of the following code ? import numpy as np z = np.eye(2) print(y) [[ 1. 0.] [ 0. 1.]]
What is the output of the following code ? import nupy as np print(np.array(([1, 2], (3,4))).shape) 2,2
Which of the following method is used to read data from a text file?loadtxt
[[0 1] [3 4]]
Array x is defined below. Determine the number of elements of it contains in second dimension?15
[[0 1]]
Which of the following numpy method is used to join arrays horizontally ?hstack
What is the output of the following code ?import numpy as np x = np.arange(4).reshape(2,2) [[0 1 4 5] [2
3 6 7]]
Which of the following method is used to convert the data type of an array? astype
What is the shape of Broadcasting array resulted from arrays with shapes (4, 1, 1,7) and (3, 1) ?(4, 1, 3, 7)
What is the output of the following Code? import numpy as np x = np.arange(4) [ True True True True]
True
Is Broadcasting feasible between two arrays whose shapes are (5, 8, 2) and (2,) ?T
What is the output of the following code ? import numpy as np x = np.arange(4).reshape(2,2) [[0, 1], [2,
3]]
What is the output of the following code? import numpy as np print(np.repeat(3, 4))
[3 3 3 3]
Is Broadcasting feasible between two arrays whose shapes are (5, 8, 1) and (4, 2) ? No
Which of the following method is used to check if a number is an infinite or not ?isinfinite
What is the output of the following code? import numpy as np x = np.array([[0, 1], [1, 1], [2, 2]]) [[0 1]]
What is the output of the following code? import numpy as np x = np.array([[0, 1], [1, 1], [2, 2]]) [1 2 4]
What is the output of the following code? import numpy as np x=np.arange(30).reshape(3,5,2) [14 15]
[4 5 6 7]