I am trying to use pandas read an append list and show each column, but it read each list as a column
li= []
for k in sample:
lines = open(k).read().splitlines()
for i in range(num):
lines = random.choice(lines)
lines = lines.replace('\t',' ')
li.append(lines)
data = DataFrame(li)
'''
where the sample is a serious of files, and the result looks like:
0
0 1.0 1.0 1.0 ...
1 1.0 1.0 1.0 ...
.
.
.
but I would like it as:
0 1 2 ...
0 1.0 1.0 1.0 ...
1 1.0 ...
.
.
.