Pandas

Question 1
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 2
Marks : +2 | -2
Pass Ratio : 100%
All pandas data structures are ___ mutable but not always _______mutable.
size, value
semantic, size
value, size
none of the mentioned
Explanation:
The length of a Series cannot be changed.
Question 3
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 4
Marks : +2 | -2
Pass Ratio : 100%
Which of the following object you get after reading CSV file?
DataFrame
Character Vector
Panel
All of the mentioned
Explanation:
You get columns out of a DataFrame the same way you get elements out of a dictionary.
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%
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 7
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 8
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 9
Marks : +2 | -2
Pass Ratio : 100%
Which of the following method is used for transforming a SparseSeries indexed by a MultiIndex to a scipy.sparse.coo_matrix?
SparseSeries.to_coo()
Series.to_coo()
SparseSeries.to_cooser()
None of the mentioned
Explanation:
Experimental api to transform between sparse pandas and scipy.sparse structures.
Question 10
Marks : +2 | -2
Pass Ratio : 50%
Point out the correct statement.
Pandas consist of set of labeled array data structures
Pandas consist of an integrated group by engine for aggregating and transforming data sets
Pandas consist of moving window statistics
All of the mentioned
Explanation:
Some elements may be close to one another according to one distance and farther away according to another.