Pandas MCQ

Correct Answer : Option (A) :   Pandas

  Show Answer

Correct Answer : Option (B) :   Matplotlib

  Show Answer

Correct Answer : Option (D) :   All of the above

  Show Answer

Correct Answer : Option (D) :   0

  Show Answer

Correct Answer : Option (C) :   Both of the above

  Show Answer
6 .
What will be output for the following code?

import pandas as pd
s = pd.Series([1,2,3,4,5],index = [‘a’,’b’,’c’,’d’,’e’])
print(s[‘a’])‚Äč

Correct Answer : Option (A) :   1

  Show Answer
7 .
What will be output for the following code?
 
import pandas as pd
import numpy as np
s = pd.Series(np.random.randn(2))
print(s.size)

Correct Answer : Option (B) :   2

  Show Answer

Correct Answer : Option (D) :   Returns the number of dimensions of the underlying data, by definition 1.

  Show Answer

Correct Answer : Option (A) :   Seaborn


Explanation : Seaborn has great support for pandas data objects.

  Show Answer

Correct Answer : Option (D) :   All of the above


Explanation : The passed index is a list of axis labels.

  Show Answer