text_plain_output_1.png image_output_1.png
import csv

import matplotlib.pyplot as plt

import numpy as np # linear algebra

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

path = '/kaggle/input/pima-indians-diabetes-database/diabetes.csv'
raw = open(path, 'rt', encoding='utf8')
reader = csv.reader(raw, delimiter=',')
header = next(reader)
data = list(reader)
data = np.array(data).astype('float')

dataset = pd.read_csv(path)
dataset.shape

dataset.dtypes

dataset.corr()

dataset.skew()

import matplotlib.pyplot as plt

import seaborn as sns
corr = dataset.corr()
plt.figure(figsize=(8, 8))
sns.heatmap(corr, xticklabels=dataset.columns, yticklabels=dataset.columns)
plt.show()