Question: Consider the following dataframe named data _ customer - customer category important sales 0 1 0 1 cat 2 yes 1 2 3 1 1

Consider the following dataframe named data_customer-
customer category important sales
0101 cat2 yes 123
1102 cat2 no 52
2103 cat1 yes 214
3104 cat3 yes 663
Which of the following should be used to find the number of customers in each of the categories?
Answer choices
Select only one option
data_customer['category'].unique()
data_customer['category'].value_counts()
data_customer['customer'].value_counts()
data_customer(['category'])['customer'].value_counts()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!