Python Pandas MCQ Questions And Answers

This section focuses on "Python Pandas" for Data Science. These Python Pandas Multiple Choice Questions (MCQ) should be practiced to improve the Data Science skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.

1. Pandas is an open-source _______ Library?

A. Ruby
B. Javascript
C. Java
D. Python

View Answer

2. Pandas key data structure is called?

A. Keyframe
B. DataFrame
C. Statistics
D. Econometrics

View Answer

3. In pandas, Index values must be?

A. unique
B. hashable
C. Both A and B
D. None of the above

View Answer

4. Which of the following is correct Features of DataFrame?

A. Potentially columns are of different types
B. Can Perform Arithmetic operations on rows and columns
C. Labeled axes (rows and columns)
D. All of the above

View Answer

5. A panel is a ___ container of data

A. 1D
B. 2D
C. 3D
D. Infinite

View Answer

6. Which of the following is true?

A. If data is an ndarray, index must be the same length as data.
B. Series is a one-dimensional labeled array capable of holding any data type.
C. Both A and B
D. None of the above

View Answer

7. Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame?

A. DataFrame.from_items
B. DataFrame.from_records
C. DataFrame.from_dict
D. All of the above

View Answer

8. Which of the following makes use of pandas and returns data in a series or dataFrame?

A. pandaSDMX
B. freedapi
C. OutPy
D. Inpy

View Answer

9. What will be output for the following code?

import pandas as pd
import numpy as np

s = pd.Series(np.random.randn(4))

print s.ndim

A. 0
B. 1
C. 2
D. 3

View Answer

10. Which of the following indexing capabilities is used as a concise means of selecting data from a pandas object?

A. In
B. ix
C. ipy
D. iy

View Answer


* You must be logged in to add comment.