Pandas

Question 1
Marks : +2 | -2
Pass Ratio : 50%
Which of the following makes use of pandas and returns data in a series or dataFrame?
pandaSDMX
freedapi
OutPy
none of the mentioned
Explanation:
freedapi module requires a FRED API key that you can obtain for free on the FRED website.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
Which of the following library is used to retrieve and acquire statistical data and metadata disseminated in SDMX 2.1?
pandaSDMX
freedapi
geopandas
all of the mentioned
Explanation:
Geopandas extends pandas data objects to include geographic information which supports geometric operations.
Question 3
Marks : +2 | -2
Pass Ratio : 33%
Which of the following is used for machine learning in python?
scikit-learn
seaborn-learn
stats-learn
none of the mentioned
Explanation:
scikit-learn is built on NumPy, SciPy, and matplotlib.
Question 4
Marks : +2 | -2
Pass Ratio : 33%
Which of the following is prominent python “statistics and econometrics library”?
Bokeh
Seaborn
Statsmodels
None of the mentioned
Explanation:
Bokeh is a Python interactive visualization library for large datasets that natively uses the latest web technologies.
Question 5
Marks : +2 | -2
Pass Ratio : 50%
Pandas consist of static and moving window linear and panel regression.
True
False
Explanation:
Time series and cross-sectional data are special cases of panel data.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Pandas follow the NumPy convention of raising an error when you try to convert something to a bool.
True
False
Explanation:
This happens in an if or when using the boolean operations, and, or, or not.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
Point out the wrong statement.
Series is 1D labeled homogeneously-typed array
DataFrame is general 2D labeled, size-mutable tabular structure with potentially heterogeneously-typed columns
Panel is generally 2D labeled, also size-mutable array
None of the mentioned
Explanation:
Panel is generally 3D labeled.
Question 8
Marks : +2 | -2
Pass Ratio : 50%
Which of the following list-like data structure is used for managing a dynamic collection of SparseArrays?
SparseList
GeoList
SparseSeries
All of the mentioned
Explanation:
To create one, simply call the SparseList constructor with a fill_value.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Which of the following is not an indexed object?
SparseSeries
SparseDataFrame
SparsePanel
None of the mentioned
Explanation:
SparseArray can be converted back to a regular ndarray by calling to_dense.
Question 10
Marks : +2 | -2
Pass Ratio : 50%
Which of the following is the base layer for all of the sparse indexed data structures?
SArray
SparseArray
PyArray
None of the mentioned
Explanation:
SparseArray is a 1-dimensional ndarray-like object storing only values distinct from the fill_value.