Created
June 3, 2019 16:20
-
-
Save erykml/0ff2918c4db9e980793aca1ab662ccc9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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