Which of the following correctly matches a function to its purpose?(1 point)

Responses

data.describe()

displays the type of data in each column
data.describe() displays the type of data in each column

data.info()

displays the count, mean, min, max, standard deviation, and quartiles for all numerical data
data.info() displays the count, mean, min, max, standard deviation, and quartiles for all numerical data

data["column"].value_counts()

displays the number of columns
data["column"].value_counts() displays the number of columns

data.shape()

displays the number of rows and columns in the data

1 answer

Here is the correct match for each function to its purpose:

  1. data.describe() - This function displays the count, mean, min, max, standard deviation, and quartiles for all numerical data. (Correct)

  2. data.info() - This function displays the type of data in each column (Correct).

  3. data["column"].value_counts() - This function displays the count of unique values in that column, not the number of columns. (Incorrect)

  4. 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().