0
I have the following difficulty: I need to read the data that is inside a CSV file and store it in an array to perform calculations with such data, but I don’t know how to do it. I’m using Python 3.6. Thanks in advance.
My code is like this: import csv
with open("arquivo.CSV") as arquivocsv:
ler = csv.DictReader(arquivocsv, delimiter=",")
for linha in ler:
print(linha)
What I need is to read the csv file that contains 6 columns with the necessary data and store in 6 different arrays/lists, one for each column, to perform the calculations.