1
I have a csv
which contains 2 columns one with a list of 200 numbers (0.3,0.4,08...) and the other a name. This file has 50 rows of this type. I would like to turn this list of number lists into an array at the end with a size of 50x200.
I tried it but it didn’t work :
dataset = pd.read_csv('exemplo.csv', sep=',')
n=[]
p=[]
for row in dataset["nome"]:
print (row)
p.append(row)
for row in dataset["numeros"]:
print (row)
n.append(row)
nome = np.array(p)
numeros = np.array(n)