2.1Write a python program to create appropriate data structure with 10 random data points. You are working for a car dealership. They want to use a Python script to manage and update their inventory. They sell Cars, Trucks, and SUVs. Each vehicle has at least the following attributes: id, model, production year, mileage, capacity, and color. Design a schema for how you would organize these in Python. 2.2Write a python code to groupby cars based on colors and give the average of milage. Show the number of cars, trucks and SUV's.
2.1Write a python program to create appropriate data structure with 10 random data points. You are working for a car dealership. They want to use a Python script to manage and update their inventory. They sell Cars, Trucks, and SUVs. Each vehicle has at least the following attributes: id, model, production year, mileage, capacity, and color. Design a schema for how you would organize these in Python. 2.2Write a python code to groupby cars based on colors and give the average of milage. Show the number of cars, trucks and SUV's.
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
Related questions
Question
9.
![2.1Write a python program to create appropriate data structure with 10 random
data points. You are working for a car dealership. They want to use a Python
script to manage and update their inventory. They sell Cars, Trucks, and SUVs.
Each vehicle has at least the following attributes: id, model, production year,
mileage, capacity, and color. Design a schema for how you would organize
these in Python.
2.2Write a python code to groupby cars based on colors and give the average of
milage. Show the number of cars, trucks and SUV's.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F8406de98-6b55-48bf-9d57-58c041692903%2Fb0b131fb-e608-446c-9cce-3bb0d72b506e%2F03x1pwn_processed.jpeg&w=3840&q=75)
Transcribed Image Text:2.1Write a python program to create appropriate data structure with 10 random
data points. You are working for a car dealership. They want to use a Python
script to manage and update their inventory. They sell Cars, Trucks, and SUVs.
Each vehicle has at least the following attributes: id, model, production year,
mileage, capacity, and color. Design a schema for how you would organize
these in Python.
2.2Write a python code to groupby cars based on colors and give the average of
milage. Show the number of cars, trucks and SUV's.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning