Here is the correct match for each function to its purpose:
-
data.describe() - This function displays the count, mean, min, max, standard deviation, and quartiles for all numerical data. (Correct)
-
data.info() - This function displays the type of data in each column (Correct).
-
data["column"].value_counts() - This function displays the count of unique values in that column, not the number of columns. (Incorrect)
-
data.shape - This property displays the number of rows and columns in the data. (Correct)
So the only accurate purpose matches are:
- data.describe() - displays the count, mean, min, max, standard deviation, and quartiles for all numerical data.
- data.info() - displays the type of data in each column.
- data.shape - displays the number of rows and columns in the data.
The incorrect statement is for data["column"].value_counts().