NUMPY QUIZ DESCRIPTION Total Questions −30 00 Max Time − 15:00 Which of the following find the maximum number in the Numpy array ? max(array) array.max() array(max) None of the above How we can change the shape of the Numpy array in python? By Shape() By reshape() By ord() By change() SciPy stands for? science library source library significant library scientific library What will be output for the following code? import pandas as pd s = pd.Series([1,2,3,4,5],index = ['a','b','c','d','e']) print s['a'] 1 2 3 4 Which of the following is not correct sub-packages of SciPy? scipy.cluster scipy.source scipy.interpolate scipy.signal Correct syntax of the reshape() function in Numpy array python is - array.reshape(shape) reshape(shape,array) reshape(array,shape) reshape(shape) Python pandas was developed by? Guido van Rossum Travis Oliphant Wes McKinney Brendan Eich View Answer Which of the following is not valid to import the numpy module ? import numpy as np import numpy as n .import numpy as p None of the above Minimum number of argument to pass in full() function in Numpy array ? 0 1 2 3 Which of the following keyword is used to access the numpy module in python ? access import fetch from Which of the following argument we need to pass in reshape() function? Array Shape only array .Both array and shape Which of the following counts the number of elements in Numpy array ? count() return() shape() size() Which of the following is used to convert the list data type to the Numpy array ? array(list) array.list Numpy.array(list) .None of the above Which of the following thing can be data in Pandas? a python dict an ndarray a scalar value All of the above Why ndim is used? Returns the number of elements in the underlying data. Returns the Series as ndarray. Returns the number of dimensions of the underlying data, by definition 1. Returns a list of the axis labels Axis 1, in panel represent? minor_axis major_axis items None of the above The project builds on top of pandas and matplotlib to provide easy plotting of data. yhat Seaborn Vincent Pychart It is possible to convert the Numpy array to list in python ? Yes No Sometimes None of the above How we can convert the Numpy array to the list in python? list(array) list.array array.list None of the above How to import Constants Package in SciPy? import scipy.constants from scipy.constants import scipy.constants.package from scipy.constants.package Which of the following is the essential argument to pass in full() function of Numpy array ? shape value Both of the above None of the above Which of the following is true? By default, all the NumPy functions have been available through the SciPy namespace There is no need to import the NumPy functions explicitly, when SciPy is imported. SciPy is built on top of NumPy arrays All of the above What will be output for the following code? import numpy as np print np.linspace(1., 4., 6) array([ 1. , 2.2, 2.8, 3.4, 4. ]) array([ 1. , 1.6, 2.8, 3.4, 4. ]) . array([ 1. , 1.6, 2.2, 2.8, 3.4, 4. ]) array([ 1. , 1.6, 2.2, 2.8, 4. ]) Which of the following is false? The integer format tracks only the locations and sizes of blocks of data. Pandas follow the NumPy convention of raising an error when you try to convert something to a bool. Two kinds of SparseIndex are implemented The integer format keeps an arrays of all of the locations where the data are not equal to the fill value Numpy in the Python provides the Function Lambda function Type casting Array What will be syntax for pandas dataframe? pandas.DataFrame( data, index, dtype, copy) pandas.DataFrame( data, index, rows, dtype, copy) pandas_DataFrame( data, index, columns, dtype, copy) pandas.DataFrame( data, index, columns, dtype, copy) what is the use of the zeros() function in Numpy array in python ? To make a Matrix with all element 0 To make a Matrix with all diagonal element 0 To make a Matrix with first row 0 None of the above What will be correct syntax for pandas series? pandas_Series( data, index, dtype, copy) pandas.Series( data, index, dtype) pandas.Series( data, index, dtype, copy) pandas_Series( data, index, dtype) Numpy.array(list), what it does ? It convert array to list It convert list to array It convert array to array Error What will be output for the following code? import pandas as pd import numpy as np s = pd.Series(np.random.randn(2)) print s.size 0 1 2 3 Previous Next Total Question16 Wrong Answer13 Right Answer13