Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A). Head(I). To display dimensionality of a DataFrame
(B). Tail(II). To display the first 'n' elements of a DataFrame
(C). Shape(III). To display the total number of elements in a DataFrame
(D). Size(IV). To display the last 'n' elements of a DataFrame

Solution

✅ Correct Option: 4
List IList II
(A) Head(II) To display the first 'n' elements of a DataFrame
(B) Tail(IV) To display the last 'n' elements of a DataFrame
(C) Shape(I) To display dimensionality of a DataFrame
(D) Size(III) To display the total number of elements in a DataFrame

Shape returns a tuple (rows,columns)(rows, columns), while size returns rows ×\times columns, the total number of elements.

Keyboard Shortcuts

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