Match List-I with List-II
List-I List-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
Match List-I with List-II
| List-I | List-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 I | List 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.
Related questions:
2026: 11 May Shift 2
2025: 3 June Shift 2