np array load csv code example
Example 1: numpy from csv
from numpy import genfromtxt
my_data = genfromtxt('my_file.csv', delimiter=',')
Example 2: python read csv into array
import csv
items = []
with open('file.csv') as csvfile:
csvReader = csv.reader(csvfile)
for row in csvReader:
items.append(row[0])
print(items)