Skip to content

Instantly share code, notes, and snippets.

@BinarySpoon
Created November 3, 2020 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BinarySpoon/1ebfbb0e85a3545204733fa20b9e8e4a to your computer and use it in GitHub Desktop.
Save BinarySpoon/1ebfbb0e85a3545204733fa20b9e8e4a to your computer and use it in GitHub Desktop.
# loading data -->
column_names = ['CRIM', 'ZN', 'INDUS', 'CHAS', 'NOX', 'RM', 'AGE', 'DIS', 'RAD', 'TAX', 'PTRATIO', 'B', 'LSTAT', 'MEDV']
boston_data = pd.read_csv('housing.csv', header=None, delimiter=r"\s+", names=column_names)
# Defining Target label column -->
boston_data.rename({"MEDV":"Target"},axis='columns', inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment