i have a added data from a csv file into a list. But now is the list build like this:
[1, 2, 3, 4, 5, 6, 7, 8, 9]
How to transform a list in a 2D list like this:
[[1, 2, 3][4, 5, 6][7, 8, 9]]
lcsv=[]
newldata=[]
for column
newldata.append(
for row in lcsv:
newldata.append(lcsv[1*row][0])
newldata.append(lcsv[1*row][1])
newldata.append(lcsv[1*row][2])
)
what's wrong?