
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Help me out with these errors

Transcribed Image Text:- Q5. plot the histogram of city_mpg
sample_data
A cars2016.csv
cars.hist(columns='city mpg2
O 15 1 of 1 problem
AttributeError: 'Rectangle' object has no property 'columns"
AttributeError
Traceback (most recent call last)
sipython-input -31-41759e67bd24> in <module>()
----> 1 cars.hist (columns='city_mpg')
* 6 frames
/usr/local/lib/python3.7/dist-packages/matplotlib/artist.py in _update_property(self, k, v)
if not callable(func):
raise AttributeError ('{!r} object has no property {!r}'
1000
1001
.format (type(self)._name_, k))
-> 1002
1003
return func(v)
1004
AttributeError: 'Rectangle' object has no property 'columns'
![[] from datascience import *
import numpy as np
sample_data
cars2016.csv
%matplotlib inline
import matplotlib.pyplot as plots
plots.style.use('fivethirtyeight')
plots.rcParams["patch.force_edgecolor"] = True
- Read table cars2016 and call it cars
[1] import pandas as pd
cars=pd.read_csv('cars2016.csv')
cars
name height length width
brand city_mpg highway_mpg transmission_type engine_torque engine_horsepower year is
2009 Audi
Automatic
140
143
202
Audi
18
25
236
250 2009
A3 3.2
transmission
2009 Audi
Automatic
1
140
143
202
Audi
22
28
207
200 2009
A3 2.0 TAT
transmission
2009 Audi
140
143
202
Audi
21
30
Manual transmission
207
200 2009
A3 2.0 T
2009 Audi](https://content.bartleby.com/qna-images/question/6ca4b84d-c518-47ce-bd33-9b129e18b52b/1670b8e0-0c7a-4818-998d-7f8b2299bd92/b3ge1ej_thumbnail.jpeg)
Transcribed Image Text:[] from datascience import *
import numpy as np
sample_data
cars2016.csv
%matplotlib inline
import matplotlib.pyplot as plots
plots.style.use('fivethirtyeight')
plots.rcParams["patch.force_edgecolor"] = True
- Read table cars2016 and call it cars
[1] import pandas as pd
cars=pd.read_csv('cars2016.csv')
cars
name height length width
brand city_mpg highway_mpg transmission_type engine_torque engine_horsepower year is
2009 Audi
Automatic
140
143
202
Audi
18
25
236
250 2009
A3 3.2
transmission
2009 Audi
Automatic
1
140
143
202
Audi
22
28
207
200 2009
A3 2.0 TAT
transmission
2009 Audi
140
143
202
Audi
21
30
Manual transmission
207
200 2009
A3 2.0 T
2009 Audi
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON

Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY