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 do not know how to do it. I am using Python 3.6. Thank you in advance.
My code looks 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 containing 6 columns with the required data and store it in 6 different arrays / lists, one for each column, to perform the calculations.