Question: I just written this code for this question, please see the message at the bottom after I have ran the code and please advise what
I just written this code for this question, please see the message at the bottom after I have ran the code and please advise what could be wrong then fix it for me
We've loaded a dataset below relating to fraud on an Ecommerce website. The fields in the dataset are
'userid'browser', 'age', 'purchasevalue', "fraud'.
Find the count of different types of browsers used in this dataset. Save the result as browsercounts and
print it
Using the list of unique browser types obtained in the previous step, convert browser to a categorical
variable type category
Using cat.codes, calculate the value that corresponds to the median value of browser, save it as a
variable named medianbrowserused and print the result.
Did you use valuecounts to get counts of browsers used by type?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
