Question - 1
S2 is ____________ in given code ? S2 = S1[2 : 5] #S1 is a Series object
List
Tuple
Series
None of these
Show Answer
Solutions
Answer- C
Question - 2
Pandas is an open-source _______ Library?
Ruby
Javascript
Java
Python
Show Answer
Solutions
Answer- D
Question - 3
In pandas, Index values must be?
unique
hashable
Both A and B
None of these
Show Answer
Solutions
Answer- C
Question - 4
Which of the following are correct Features of DataFrame?
Potentially columns are of different types
Can Perform Arithmetic operations on rows and columns
Labeled axes (rows and columns)
All of the above
Show Answer
Solutions
Answer- D
Question - 5
A panel is a ___ container of data.
Answer- C
Question - 6
Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame?
DataFrame.from_items
DataFrame.from_records
DataFrame.from_dict
All of the above
Show Answer
Solutions
Answer- A
Question - 7
Which of the following makes use of pandas and returns data in a series or data frame?
pandaSDMX
freedapi
OutPy
Inpy
Show Answer
Solutions
Answer- B
Question - 8
What will be output for the following code? import pandas as pd import numpy as np s = pd.Series(np.random.randn(4)) print s.ndim
Answer- B
Question - 9
Which of the following indexing capabilities is used as a concise means of selecting data from a pandas object?
Answer- B
Question - 10
Python pandas were developed by?
Guido van Rossum
Travis Oliphant
Wes McKinney
Brendan Eich
Show Answer
Solutions
Answer- C
Question - 11
Python pandas were developed by? What will be the correct syntax for the pandas series?
pandas_Series( data, index, dtype, copy)
pandas.Series( data, index, dtype)
pandas.Series( data, index, dtype, copy)
pandas_Series( data, index, dtype)
Show Answer
Solutions
Answer- C
Question - 12
Axis 1, in the panel, represents?
minor_axis
major_axis
items
None of these
Show Answer
Solutions
Answer- B
Question - 13
The ________ project builds on top of pandas and matplotlib to provide easy plotting of data.
yhat
Seaborn
Vincent
Pychart
Show Answer
Solutions
Answer- B
Question - 14
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
Show Answer
Solutions
Answer- C
Question - 15
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
Answer- C
Question - 16
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
Show Answer
Solutions
Answer- A
Question - 17
Point out the correct statement.
If data is a list, if index is passed the values in data corresponding to the labels in the index will be pulled out
NaN is the standard missing data marker used in pandas
Series acts very similarly to a array
None of the above
Show Answer
Solutions
Answer- B
Question - 18
What do we pass in DataFrame in pandas?
Integer
String
pandas series
All of the above
Show Answer
Solutions
Answer- C
Question - 19
1 dimensional array
2 dimensional array
3 dimensional array
None of these
Show Answer
Solutions
Answer- A
Question - 20
Minimum numbers of arguments require to pass in pandas series?
Answer- B
Practice more set questions