Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) DataFrame.values(I) To display row labels
(B) DataFrame.head( )(II) To display all the values of the DataFrame without axes labels
(C) DataFrame.size(III) To display the total values in a DataFrame
(D) DataFrame.index(IV) To display the top 5 rows

Solution

✅ Correct Option: 1
List IList II
(A) DataFrame.values(II) To display all the values of the DataFrame without axes labels
(B) DataFrame.head( )(IV) To display the top 5 rows
(C) DataFrame.size(III) To display the total values in a DataFrame
(D) DataFrame.index(I) To display row labels

DataFrame.size is easily confused with DataFrame.values. size gives a single number (rows x columns), while values gives the actual data as a NumPy array.

Keyboard Shortcuts

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