csv file to 2d list, then splitting onto list of 2d lists

Published: 14/01/2020
csv file to 2d list, then splitting onto list of 2d lists
Source: STACKOVERFLOW.COM

I read a csv file into a 2d list: aData = loadtxt(sPath, delimiter=',') that i could directly split into two 2d list: X = aData[:,10:] # neural net output Y = aData[:,2:10] # neural net input But before that i want to spread aData onto 6 different 2d-lists aDataW = [ [[]], [[]], [[]], [[]], [[]], [[]] ] # no idea if this is correct :-( and then something like for i in range(len(aData)): iW = 4 #

Read more
Related news
Comment
FACEBOOK