Here’s the correct matching of functions to their purposes:
-
data["column"].value_counts() - Displays the count of unique values in the specified column, not the number of columns.
-
data.describe() - Displays count, mean, min, max, standard deviation, and quartiles for numerical data.
-
data.info() - Displays a summary of the DataFrame including the number of non-null entries in each column and the data types.
-
data.shape - Displays the number of rows and columns in the data.
From your provided options, the closest correct matches would be:
- data["column"].value_counts() does not correctly match the function to its purpose.
- data.describe() correctly matches with displaying the count, mean, min, max, standard deviation, and quartiles for all numerical data.
- data.info() does not display the count, mean, min, etc.—it provides an overview of the DataFrame.
- data.shape correctly matches with displaying the number of rows and columns in the data.
Based on this analysis, the only accurately stated option is:
data.shape - displays the number of rows and columns in the data.