Question
Language needed is python Read, understand and access the car evaluation data from https://archive.ics.uci.edu/ml/datasets/Car+Evaluation, click Data Folder, access car.data and answer the following: [Data Set
Language needed is python
Read, understand and access the car evaluation data from https://archive.ics.uci.edu/ml/datasets/Car+Evaluation, click Data Folder, access car.data and answer the following: [Data Set Description contains the information about the data] [this data contains 6 attributes and 1 class/groups]
There are four classes/groups of car acceptability. Write a function called as Acceptability which takes zero argument and prints the car acceptability group names and its corresponding count (number of data points) For example: Function call: Acceptability() Prints: unacc: n1, acc: n2, good: n3, vgood: n4
Write a function called as Acceptability_seating which takes seating capacity attribute as an input argument and prints out the count of acceptability groups For example: Function call: Acceptability_seating(2) Prints: unacc: n1, acc: n2, good: n3, vgood: n4 Make function calls with each one of the attributes i.e. 2, 3, 4, 5more
Write a function called as Acceptability_safety which takes safety attribute as an input argument and prints out the count of acceptability groups For example: Function call: Acceptability_safety(high) Prints: unacc: n1, acc: n2, good: n3, vgood: n4 Make function calls with each one of the attributes i.e. low, med, high
Write a function called as Acceptability_buying which takes buying price attribute as an input argument and prints out the count of acceptability groups For example: Function call: Acceptability_buying(med) Prints: unacc: n1, acc: n2, good: n3, vgood: n4 Make function calls with each one of the attributes i.e. vhigh, high, med, low
Write a function called as Acceptability_maintenance which takes maintenance price attribute as an input argument and prints out the count of acceptability groups For example: Function call: Acceptability_maintenance(high) Prints: unacc: n1, acc: n2, good: n3, vgood: n4 Make function calls with each one of the attributes i.e. vhigh, high, med, low
Note: n1, n2, n3 and n4 are the counts corresponding to unacc, acc, good and vgood respectively. For a), b), c) and d), write the function, make function call/s and paste snapshots of the results.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started