Question: ### Read the pickle file with open ( ' fuel _ economy.data.pickle', ' rb ' ) as fid: ( data _ var _ names, manufacturer

### Read the pickle file
with open('fuel_economy.data.pickle', 'rb') as fid:
(data_var_names, manufacturer_names, mpgData)= pickle.load(fid)
comp116.array_to_html(mpgData, row_names=manufacturer_names, col_names=data_var_names,
title='2017 Fuel Economy data by Manufacturer')2017 Fuel Economy data by Manufacturer
Real-World Comb MPG Real-World Comb CO2 g/mi Weight (lbs) HP 0-60 Time (s)
GM 22.9388.04520.0265.08.0
Toyota 25.3351.04059.0216.08.5
Ford 22.9388.04360.0262.07.9
FCA 21.2420.04510.0280.07.5
Nissan-Mitsubishi 27.1327.03770.0201.08.9
Honda 29.4302.03595.0203.08.1
Hyundai 28.6311.03458.0176.08.9
Subaru 28.5312.03724.0181.09.3
VW 26.5335.03894.0225.07.9
Kia 27.2327.03592.0186.08.8
Mercedes 23.1385.04536.0288.07.0
BMW 25.9341.04107.0257.07.0
Mazda 29.0306.03569.0178.08.9 For the rest of this quistion, you should use comparisons and boolean values to select subsets. You should not make use of the absolute index of the data.
For example, you know that "Real-World Comb MPG" is in the column with index 0, and "Ford" is the row with index 2 in mpgData. But do not use mpgData[2,0] to get to the real-world mpg data for Ford. Look at the course lecture on this topic to refresh.
Compute the list of all manufacturers whose "Real-World Comb MPG" was higher than 25.
# Your code here
Find the list of all manufacturers whose real-world comb MPG was higher that 25 AND whose 0-60 time is less than 8 seconds
# Your code here
What was the HP for GM vehicles?
# Your code here
What were the real-world comb MPG and weight for VW?
# Your code here
Create a Numpy array that has the real-world comb MPG, weight and 0-60 time (in that order) for Ford, VW and Honda (in that order)
# Your code here
Click to add a cell.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!