Download (right-click, save target as ...) this page as a jupyterlab notebook Lab26-TH
LAST NAME, FIRST NAME
R00000000
ENGR 1330 Exercise Set 26 - Homework
In the http://54.243.252.9/engr-1330-webroot/4-Databases/CarsDF.csv file, you will find a dataset with information about cars and motorcycles including their age, kilometers driven (mileage), fuel economy, enginer power, engine volume, and selling price. Follow the steps and answer the questions.
# code here
# Step1:
import requests # Module to process http/https requests
remote_url="http://54.243.252.9/engr-1330-webroot/4-Databases/CarsDF.csv" # set the url
rget = requests.get(remote_url, allow_redirects=True) # get the remote resource, follow imbedded links
open('CarsDF.csv','wb').write(rget.content); # extract from the remote the contents, assign to a local file same name
# Step1B
# make into a dataframe
# whats in the dataframe
On Step1: [Double-Click to edit]
# Step2:.
On Step2: [Double-Click to edit]
#Step3:
On Step3: [Double-Click to edit]
# Step4:
On Step4: [Double-Click to edit]
# Step5:
On Step5: [Double-Click to edit]
# Step6:
On Step6: [Double-Click to edit]
#Step7:
On Step7: [Double-Click to edit]