Pandas

Question 1
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 2
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 3
Marks : +2 | -2
Pass Ratio : 100%
Panel is a container for Series, and DataFrame is a container for dataFrame objects.
True
False
Explanation:
DataFrame is a container for Series, and panel is a container for dataFrame objects.
Question 4
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 5
Marks : +2 | -2
Pass Ratio : 100%
Which of the following provides a standard API for doing computations with MongoDB?
Blaze
Geopandas
FRED
All of the mentioned
Explanation:
If your work entails maps and geographical coordinates, and you love pandas, you should take a close look at Geopandas.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Point out the correct statement.
All of the standard pandas data structures have a to_sparse method
Any sparse object can be converted back to the standard dense form by calling to_dense
The sparse objects exist for memory efficiency reasons
All of the mentioned
Explanation:
The to_sparse method takes a kind argument and a fill_value.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
The integer format tracks only the locations and sizes of blocks of data.
True
False
Explanation:
The block format tracks only the locations and sizes of blocks of data.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
Which of the following indexing capabilities is used as a concise means of selecting data from a pandas object?
In
ix
ipy
none of the mentioned
Explanation:
ix and reindex are 100% equivalent.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Point out the wrong statement.
to_array. append can accept scalar values or any 2-dimensional sequence
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
None of the mentioned
Explanation:
to_array. append can accept scalar values or any 1-dimensional sequence.
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.