I want to convert the data from the .csv file into a NumPy array and then find the mean of the data.
import csv
import numpy as np
import statistics as stat
with open('pima-indians-diabetes.csv') as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
for row in readCSV:
x = np.array(row[1])
z = stat.mean(x)
print(z)