Skip to content

Instantly share code, notes, and snippets.

@panicpotatoe
Created March 20, 2019 09:12
Show Gist options
  • Select an option

  • Save panicpotatoe/5c70975fba563cf08296c7e8b8cd5d05 to your computer and use it in GitHub Desktop.

Select an option

Save panicpotatoe/5c70975fba563cf08296c7e8b8cd5d05 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('https://s3.us-west-2.amazonaws.com/public.gamelab.fun/dataset/position_salaries.csv')
X = dataset.iloc[:, 1:2].values
y = dataset.iloc[:, 2].values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment