Challenge

Project 2

Python code:

Importing the libraries

DATA PREPROCESSING:

Reading the dataset

Assigning the target to target column

Dropping the target columns from the df dataset

Converting the categorical datas

Converting the numerical datas

Combining the data

TUNING THE MODEL

Assigning the best cluster as 10 and visualizing the data

Thus the 10 clusters are plotted.

Applying Linear Regression to the target variable and finding the errors

1. Price

2. City-mpg

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.