NUMPY QUIZ DESCRIPTION Total Questions −30 00 Max Time − 15:00 Numpy.array(list), what it does ? It convert array to list It convert list to array It convert array to array Error Which of the following keyword is used to access the numpy module in python ? access import fetch from How we can change the shape of the Numpy array in python? By Shape() By reshape() By ord() By change() Which of the following thing can be data in Pandas? a python dict an ndarray a scalar value All of the above 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 How we install Numpy in the system ? install numpy pip install python numpy .pip install numpy pip install numpy python 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 size attribute in Numpy array in python ? It find the direction It find the number of items It find the shape All of the above 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 is correct way to import the Numpy module in your program ? import numpy .import numpy as np from numpy import * All of the above Which of the following counts the number of elements in Numpy array ? count() return() shape() size() Axis 1, in panel represent? minor_axis major_axis items 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 Python pandas was developed by? Guido van Rossum Travis Oliphant Wes McKinney Brendan Eich View Answer 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 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 Which of the following is not correct sub-packages of SciPy? scipy.cluster scipy.source scipy.interpolate scipy.signal 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 in the Python provides the Function Lambda function Type casting Array Correct syntax of the reshape() function in Numpy array python is - array.reshape(shape) reshape(shape,array) reshape(array,shape) reshape(shape) 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 The project builds on top of pandas and matplotlib to provide easy plotting of data. yhat Seaborn Vincent Pychart SciPy stands for? science library source library significant library scientific library 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 find the maximum number in the Numpy array ? max(array) array.max() array(max) None of the above Shape() function in Numpy array is used to Find the shape of the array Change the shape of the array Both of the above None of the above 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 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 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 Previous Next Total Question16 Wrong Answer13 Right Answer13