text_html_output_1.png
import matplotlib.pyplot as plt

import numpy as np

import pandas as pd

data = pd.read_csv('../input/diabetes.csv')

correlations = data.corr()
correlations['Outcome'].sort_values(ascending=False)

def visualise(data):
    fig, ax = plt.subplots()
    ax.scatter(data.iloc[:,1].values, data.iloc[:,5].values)
    ax.set_title('Highly Correlated Features')
    ax.set_xlabel('Plasma glucose concentration')
    ax.set_ylabel('Body mass index')

visualise(data)

data[['Glucose', 'BMI']] = data[['Glucose', 'BMI']].replace(0, np.NaN)
data.dropna(inplace=True)

visualise(data)