Pandas

Question 1
Marks : +2 | -2
Pass Ratio : 50%
Which of the following is used for testing for membership in the list of column names?
in
out
elseif
none of the mentioned
Explanation:
For DataFrames, likewise, in applies to the column axis.
Question 2
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 3
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 4
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 5
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 6
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 7
Marks : +2 | -2
Pass Ratio : 100%
Spyder can introspect and display Pandas DataFrames.
True
False
Explanation:
Spyder show both “column wise min/max and global min/max coloring.
Question 8
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 9
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 10
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.