Pandas

Question 1
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 2
Marks : +2 | -2
Pass Ratio : 100%
Point out the wrong statement.
qgrid is an interactive grid for sorting and filtering DataFrames
Pandas DataFrames implement _repr_html_ methods which are utilized by IPython Notebook
Spyder is a cross-platform Qt-based open-source R IDE
None of the mentioned
Explanation:
Spyder is a cross-platform Qt-based open-source Python IDE.
Question 3
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 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 : 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 6
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 7
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 8
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 9
Marks : +2 | -2
Pass Ratio : 100%
The ________ project builds on top of pandas and matplotlib to provide easy plotting of data.
yhat
Seaborn
Vincent
None of the mentioned
Explanation:
Seaborn has great support for pandas data objects.
Question 10
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.