The correct match of a function to its purpose from the options you've provided is as follows:
data.describe()
displays the count, mean, min, max, standard deviation, and quartiles for all numerical data.
The other options are incorrect as follows:
data.describe()
does not display the type of data in each column; that is done bydata.dtypes
ordata.info()
.data["column"].value_counts()
displays the number of unique values in "column", not the number of columns.data.info()
provides a summary of the DataFrame, including the types of data and non-null counts but does not calculate descriptive statistics like mean or standard deviation.data.shape
(notdata.shape()
) is an attribute that displays the number of rows and columns in the DataFrame.
So, the only correct response that accurately reflects the function's purpose is:
- data.describe() displays the count, mean, min, max, standard deviation, and quartiles for all numerical data.