You work in XYZ Company as a Python Data Scientist. The company officials have collected some data on Health parameter based on Diabetes and wish for you to create a model from it.
Dataset: diabetes.csv
- Load the dataset using pandas
- Extract data from Outcome column in a variable named Y
- Extract data from every column except Outcome column in a variable named X
- Divide the dataset into two parts for training and testing in 70% and 30% proportion
- Create and train Logistic Regression Model on training set
- Make predictions based on the testing set using the trained model
- Check the performance by calculating the confusion matrix and accuracy score of the model