Example:
l = ['3.4', '3.2', '2.3', '4.3', '2.3']
Is there a way to convert the list above into separate columns?
For example, I am can do this:
Header
3.4
3.2
2.3
4.3
2.3
with the following code:
df = pdf.DataFrame(l)
However, I would like to achieve the following:
3.4 | 3.2 | 2.3 | 4.3 | 2.3 -> separate columns, rather than rows.
Thank you!
pd.DataFrame([l])df.transpose()transpose:df.T