Data Science Questions and Answers – Pandas – 1

This set of Data Science question bank focuses on “Pandas – 1”.

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
View Answer

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
View Answer

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
View Answer

Answer: a
Explanation: You can read data from a CSV file using the read_csv function.

advertisement
advertisement

4. Which of the following object you get after reading CSV file?
a) DataFrame
b) Character Vector
c) Panel
d) All of the mentioned
View Answer

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
View Answer

Answer: c
Explanation: Panel is generally 3D labeled.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. Which of the following library is similar to Pandas?
a) NumPy
b) RPy
c) OutPy
d) None of the mentioned
View Answer

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
View Answer

Answer: b
Explanation: DataFrame is a container for Series, and panel is a container for dataFrame objects.

advertisement

8. Which of the following is prominent python “statistics and econometrics library”?
a) Bokeh
b) Seaborn
c) Statsmodels
d) None of the mentioned
View Answer

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
View Answer

Answer: a
Explanation: It has great support for pandas data objects.

advertisement

10. Pandas consist of static and moving window linear and panel regression.
a) True
b) False
View Answer

Answer: a
Explanation: Time series and cross-sectional data are special cases of panel data.

Sanfoundry Global Education & Learning Series – Data Science.

Here’s the list of Best Books in Data Science.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.