Pandas

Question 1
Marks : +2 | -2
Pass Ratio : 100%
x-ray brings the labeled data power of pandas to the physical sciences.
True
False
Explanation:
It aims to provide a pandas-like and pandas-compatible toolkit for analytics on multi-dimensional arrays.
Question 2
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.
Question 3
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 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 : 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 6
Marks : +2 | -2
Pass Ratio : 50%
Which of the following statement will import pandas?
import pandas as pd
import panda as py
import pandaspy as pd
all of the mentioned
Explanation:
You can read data from a CSV file using the read_csv function.
Question 7
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.
Question 8
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 9
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 10
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.