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 : 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 3
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 4
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 5
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 6
Marks : +2 | -2
Pass Ratio : 50%
Quandl API for Python wraps the ________ REST API to return Pandas DataFrames with time series indexes.
Quandl
PyDatastream
PyData
None of the mentioned
Explanation:
PyDatastream is a Python interface to the Thomson Dataworks Enterprise (DWE/Datastream) SOAP API to return indexed pandas dataFrames or panels with financial data.
Question 7
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 8
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 9
Marks : +2 | -2
Pass Ratio : 50%
Point out the correct statement.
Statsmodels provides powerful statistics, econometrics, analysis and modeling functionality that is out of panda’s scope
Vintage leverages pandas objects as the underlying data container for computation
Bokeh is a Python interactive visualization library for small datasets
All of the mentioned
Explanation:
Bokeh goal is to provide elegant, concise construction of novel graphics in the style of D3.
Question 10
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.