Skip to content

Instantly share code, notes, and snippets.

@erykml
Created June 3, 2019 16:20
Show Gist options
  • Select an option

  • Save erykml/0ff2918c4db9e980793aca1ab662ccc9 to your computer and use it in GitHub Desktop.

Select an option

Save erykml/0ff2918c4db9e980793aca1ab662ccc9 to your computer and use it in GitHub Desktop.
import pandas as pd
from sklearn.datasets import load_boston
# load data
boston = load_boston()
X = pd.DataFrame(boston.data, columns=boston.feature_names)
X.drop('CHAS', axis=1, inplace=True)
y = pd.Series(boston.target, name='MEDV')
# inspect data
X.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment