Data Science question bank focuses on “Pandas”.
1. All pandas data structures are ___ mutable but not always _______mutable.
a) size, value
b) semantic, size
c) value, size
d) none of the mentioned
Answer: c
Explanation: The length of a Series cannot be changed.
2. Point out the correct statement.
a) Pandas consist of set of labeled array data structures
b) Pandas consist of an integrated group by engine for aggregating and transforming data sets
c) Pandas consist of moving window statistics
d) All of the mentioned
Answer: d
Explanation: Some elements may be close to one another according to one distance and farther away according to another.
3. Which of the following statement will import pandas?
a) import pandas as pd
b) import panda as py
c) import pandaspy as pd
d) all of the mentioned
Answer: a
Explanation: You can read data from a CSV file using the read_csv function.
4. Which of the following object you get after reading CSV file?
a) DataFrame
b) Character Vector
c) Panel
d) All of the mentioned
Answer: a
Explanation: You get columns out of a DataFrame the same way you get elements out of a dictionary.
5. Point out the wrong statement.
a) Series is 1D labeled homogeneously-typed array
b) DataFrame is general 2D labeled, size-mutable tabular structure with potentially heterogeneously-typed columns
c) Panel is generally 2D labeled, also size-mutable array
d) None of the mentioned
Answer: c
Explanation: Panel is generally 3D labeled.
6. Which of the following library is similar to Pandas?
a) NumPy
b) RPy
c) OutPy
d) None of the mentioned
Answer: a
Explanation: NumPy is the fundamental package for scientific computing with Python.
7. Panel is a container for Series, and DataFrame is a container for dataFrame objects.
a) True
b) False
Answer: b
Explanation: DataFrame is a container for Series, and panel is a container for dataFrame objects.
8. Which of the following is prominent python “statistics and econometrics library”?
a) Bokeh
b) Seaborn
c) Statsmodels
d) None of the mentioned
Answer: c
Explanation: Bokeh is a Python interactive visualization library for large datasets that natively uses the latest web technologies.
9. Which of the following is a foundational exploratory visualization package for the R language in pandas ecosystem?
a) yhat
b) Seaborn
c) Vincent
d) None of the mentioned
Answer: a
Explanation: It has great support for pandas data objects.
10. Pandas consist of static and moving window linear and panel regression.
a) True
b) False
Answer: a
Explanation: Time series and cross-sectional data are special cases of panel data.