Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) df.index(I) Display the first 'n' rows of the DataFrame
(B) df.dtypes(II) Display a tuple representing the dimensionality
(C) df.head(III) To display row labels
(D) df.size(IV) To display type of each column in the DataFrame

Solution

✅ Correct Option: 2
List IList II
(A) df.index(III) To display row labels
(B) df.dtypes(IV) To display type of each column in the DataFrame
(C) df.head(I) Display the first 'n' rows of the DataFrame
(D) df.size(II) Display a tuple representing the dimensionality

Strictly, the tuple of dimensions is given by df.shape, while df.size returns the total number of elements (rows x columns). Here (D) is left with (II) as the only remaining match once (A), (B) and (C) are fixed.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question