Skip to content

Instantly share code, notes, and snippets.

@shubham769
Created June 21, 2020 14:41
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 shubham769/3c460a802ac7de5678f39338b34821a2 to your computer and use it in GitHub Desktop.
Save shubham769/3c460a802ac7de5678f39338b34821a2 to your computer and use it in GitHub Desktop.
pima = pd.read_csv("diabetes.csv")
X = pima.iloc[:,:-1]
y = pima.iloc[:,-1]
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=1) # 70% training and 30% test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment