The correct matches of functions to their purposes are as follows:
-
data.info():
- Correct Purpose: Displays a summary of the DataFrame, including the number of non-null entries, data types of columns, and memory usage. (However, it does not display statistics like mean, min, max, etc.)
-
data.shape():
- Correct Purpose: Displays the number of rows and columns in the data. (This statement is correctly matched.)
-
data["column"].value_counts():
- Correct Purpose: Displays the counts of unique values in the specified column (not the number of columns).
-
data.describe():
- Correct Purpose: Displays descriptive statistics like count, mean, std, min, max, and quartiles for numerical columns in the DataFrame. (It does not display the type of data in each column—that's the role of data.info().)
Based on this breakdown, the only correct and complete match is:
- data.shape() displays the number of rows and columns in the data.