Importing Libraries and Dataset

Here we are using 

  • Pandas To load the Dataframe
  • Matplotlib To visualize the data features i.e. barplot
  • Seaborn To see the correlation between features using heatmap

Python3




import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
 
dataset = pd.read_excel("HousePricePrediction.xlsx")
 
# Printing first 5 records of the dataset
print(dataset.head(5))


Output:

 

As we have imported the data. So shape method will show us the dimension of the dataset. 

Python3




dataset.shape


Output: 

(2919,13)

House Price Prediction using Machine Learning in Python

We all have experienced a time when we have to look up for a new house to buy. But then the journey begins with a lot of frauds, negotiating deals, researching the local areas and so on.

Similar Reads

House Price Prediction using Machine Learning

So to deal with this kind of issues Today we will be preparing a MACHINE LEARNING Based model, trained on the House Price Prediction Dataset....

Importing Libraries and Dataset

Here we are using...

Data Preprocessing

...

Exploratory Data Analysis

...

Data Cleaning

Now, we categorize the features depending on their datatype (int, float, object) and then calculate the number of them....

OneHotEncoder – For Label categorical features

...

Splitting Dataset into Training and Testing

EDA refers to the deep analysis of data so as to discover different patterns and spot anomalies. Before making inferences from data it is essential to examine all your variables....

Model and Accuracy

...

Conclusion

...