_______________ attribute name is used to display a NumPy ndarray having all the values in the DataFrame, without the axes labels.
_______________ attribute name is used to display a NumPy ndarray having all the values in the DataFrame, without the axes labels.
Solution
✅ Correct Option: 4
DataFrame.values returns the data of the DataFrame as a NumPy ndarray. It contains only the values, with the row and column labels left out.
Option 1: columns returns only the column labels (an Index object), not the data.
Option 2: size returns a single integer, the total number of elements (rows x columns).
Option 3: shape returns a tuple of the number of rows and columns, not the data.
In newer pandas, DataFrame.to_numpy() is the recommended way to get the same ndarray.
Related questions:
2026: 11 May Shift 2
2025: 3 June Shift 2