Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*** Only a snapshot of a portion of the data given for this problem*** Write the python code to get the answer of following tasks.

image text in transcribed

*** Only a snapshot of a portion of the data given for this problem***

Write the python code to get the answer of following tasks.

Manual counting and typing the output file will get 0 point.

The output files result.txt and figure.jpg should be generated by running your code

Tasks:

1. How many attribute the data has?

2. How many missing values the data has?

3. How many cars the data shows?

4. How many distinct values the buying attribute has?

5. What is frequency of unacc in evaluation attribute?

6. How many cars that have high safety?

7. output all above 6 answers to result.txt file

Your file should look like:

Result of analysis

How many attribute the data has: xxx

How many missing values the data has: xxx

8. plot the distribution of doors of all the cars, (x axis is the car ID, y axis is the doors data, assume the ID of first car is 0, second car is 1 .) (assume the missing value is 0, 5more is a random value between [6, 10]).

doors persons lug_boot safety evaluation buying maint vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh small small small doors persons lug_boot safety evaluation buying maint vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh vhigh small small small

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions

Question

Explain how to build high-performance service delivery teams.

Answered: 1 week ago

Question

Understand what a service-oriented culture is.

Answered: 1 week ago