Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The dataset mpg contains information on miles per gallon (mpg) and engine size for cars sold from 1970 through 1982 . The dataset has the
The dataset mpg contains information on miles per gallon (mpg) and engine size for cars sold from 1970 through 1982 . The dataset has the features mpg, cylinders, displacement, horsepower, weight, acceleration, model year, origin, and name. - Load the dataset mpg - Create a new dataframe using the columns weight and mps - Use matplotlib to make a scatter plot of weight vs mpg labelling the x-axis weight and the y-axis MPG If displacement and horsepower were used instead of weight and mpg, the output would be: [398 rows x 2 columns] main.py
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started