How can I transpose the ouput of many rows to one row which is comma separated?
with open(filein, 'r') as rh:
for line in rh:
clm = line.split(',')[0] #Returns first column
print(clm)
Current Output - Many Rows:
abc
def
ghi
jkl
Desired Output - One Row, Comma Separated:
abc,def,ghi,jkl