The data label associated with a particular value of Series is called its ______
1.Data value
2.Index
3.Value
4.None of the above
What type of error is returned by following code? import pandas as pd S1 = pd.Series(data = (31, 2, -6), index = [7, 9, 3, 2]) print(S1)
1.SyntaxError
2.IndexError
3.ValueError
4.None of the above
Which attribute is used to give user defined labels in Series
1.. index
2.data
3.values
4.None of the above
A Series by default have numeric data labels starting from ______________.
1.3
2.2
3.1
4.0
A __________ is a collection of data values and operations that can be applied to that data.
1.Data Structure
2.Data Frame
3.Table
4.None of the above
A _______________ is a one-dimensional array.
1.Data Frame
2.Series
3.Both of the above
4.None of the above
Fill in the blank to get the ouput as 3 import pandas as pnd S1=pnd.Series([1,2,3,4], index = ['a','b','c','d']) print(S1[___________])
1.‘c’
2.2
3.c
4.All the above
How many elements will be there in the series named “S1� >>> S1 = pd.Series(range(5)) >>> print(S1)
1.5
2.4
3.6
4.None of the above
How many values will be there in array1, if given code is not returning any error? >>> series4 = pd.Series(array1, index = [“Janâ€, “Febâ€, “Marâ€, “Aprâ€])
1.1
2.2
3.3
4.4
Important data structure of pandas is/are _
1. Series
2.Data Frame
3.Both of the above
4.None of the above
NumPy stands for ____
1.Number Python
2. Numerical Python
3.Numbers in Python
4.None of the above
Pandas Series can have _________________ data types
1.NumPy
2.Pandas
3.Matplotlib
4.None of the above
PANDAS stands for _____________
1.Panel Data Analysis
2.Panel Data analyst
3.Panel Data
4.Panel Dashboard
We can imagine a Pandas Series as a ______________ in a spreadsheet
1.Column
2.Cell
3.Table
4.None of the above
What type of error is returned by following statement? import pandas as pnd pnd.Series([1,2,3,4], index = [‘a’,’b’,’c’])
1.SyntaxError b. c.
2.IndexError
3.ValueError
4.None of the above
When we create a series from dictionary then the keys of dictionary become ____
1.Index of the series
2.Value of the series
3.Caption of the series
4. None of the series
When we create a series from dictionary then the keys of dictionary become ____
1.Index of the series
2.Value of the series
3.Caption of the series
4. None of the series
When we create a series from dictionary then the keys of dictionary become ____
1.Index of the series
2.Value of the series
3.Caption of the series
4. None of the series
When you print/display any series then the left most column is showing _________ value.
1.Index
2.Data
3.Value
4.None of the above
Which of the following are modules/libraries in Python?
1.NumPy
2.Pandas
3.Matplotlib
4.All the above
Which of the following command is used to install pandas?
1.pip install pandas
2.install pandas
3. pip pandas
4.None of the above
Which of the following function/method help to create Series?
1.series( )
2. Series( )
3.createSeries( )
4.None of the above
Which of the following libraries allows to manipulate, transform and visualize data easily and efficiently.
1.Pandas
2.NumPy
3.Matplotlib
4.All the above
Which of the following library in Python is used for plotting graphs and visualization
1.Pandas
2.NumPy
3.Matplotlib
4.None of the above
Which of the following module is to be imported to create Series?
1.NumPy
2.Pandas
3.Matplotlib
4.None of the above
Which of the following statement is correct for importing pandas in python?
1.import pandas
2. import pandas as pd
3.import pandas as pds
4.All the above
Which of the following statement is wrong?
1.We can create Series from Dictionary in Python.
2.Keys of dictionary become index of the series.
3.Order of indexes created from Keys may not be in the same order as typed in dictionary.
4.All are correct
Which of the following statement will create an empty series named “S1�
1. S1 = pd.Series(None)
2. S1 = pd.Series( )
3.Both of the above
4.None of the above
Write the output of the following : >>> S1=pd.Series(14, index = ['a', 'b', 'c']) >>> print(S1)
1.a 14 b 14 c 14 dtype: int64
2.a 14 dtype: int64
3.Error
4.None of the above
Write the output of the following: >>> S1=pd.Series(14, 7, index = ['a', 'b', 'c']) >>> print(S1)
1.a 14 b 7 c 7 dtype: int64
2.a 14 b 7 dtype: int64
3.Error
4.None of the above
____ is an important library used for analyzing data.
1.Math
2.Random
3.Pandas
4. None of the above