Skip to content

Instantly share code, notes, and snippets.

@panicpotatoe
Created March 18, 2019 07:59
Show Gist options
  • Save panicpotatoe/7c19939753d56beb971d33b62645877b to your computer and use it in GitHub Desktop.
Save panicpotatoe/7c19939753d56beb971d33b62645877b to your computer and use it in GitHub Desktop.
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
@rttchyd
Copy link

rttchyd commented Sep 7, 2021

y_pred = regressor.predict([[5]]) not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment