Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions