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.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
icon
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.
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Concept of pointer parameter
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning