text_plain_output_1.png
import csv

import numpy as np # linear algebra

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')

raw = open(path, 'rt', encoding='utf8')
header = raw.readline()
data = np.loadtxt(raw, delimiter=',')
print(data.shape)
print(header)