Decision Tree Regression in Python – Step 1.) Import Libraries and Import Dataset

with No Comments

#Importing Libraries

import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

#Importing data
dataset = pd.read_csv(‘Decision Tree Data.csv’)
x = dataset.iloc[:,1:2].values
y =dataset.iloc[:,2].values

 

Leave a Reply