Created
March 18, 2019 07:59
-
-
Save panicpotatoe/7c19939753d56beb971d33b62645877b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
# Importing the dataset | |
dataset = pd.read_csv('salary_data.csv') | |
X = dataset.iloc[:, :-1].values #get a copy of dataset exclude last column | |
y = dataset.iloc[:, 1].values #get array of dataset in column 1st |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
y_pred = regressor.predict([[5]]) not working