Skip to content

Instantly share code, notes, and snippets.

@cobanov
Created November 7, 2020 19:18
Show Gist options
  • Select an option

  • Save cobanov/a4bf7b90130f708b27c9f3530712221b to your computer and use it in GitHub Desktop.

Select an option

Save cobanov/a4bf7b90130f708b27c9f3530712221b to your computer and use it in GitHub Desktop.
first_eight_percent = int(boston.shape[0]* 0.8)
boston_train, boston_test = boston.iloc[:first_eight_percent, :], boston.iloc[first_eight_percent:, :]
boston_train.to_csv("boston_train.csv")
boston_test.to_csv("boston_test.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment