Hello I am trying to make one csv from another csv file.
Below is my input file in csv.
1 2
3 4
5 6
And my desired output like
1
2
3
4
5
6
Basically I am trying to convert each row into column.
csvfile = open('main.csv', 'r')
textcsv = csv.reader(csvfile, delimiter=',')
for row in textcsv:
list_ = list(row)
column = pd.DataFrame(list_)
outputDF = pd.concat([outputDF, column], axis=1)
outputDF.to_csv(output.csv, sep=',', index=False)
I got the output which convert row in column but not repeated.

