I want to load lists into columns of a pandas DataFrame but cannot seem to do this simply. This is an example of what I want using transpose() but I would thin
transpose()
Here's another 1-line solution preserving the specified order, without typing x and sin(x) twice:
x
sin(x)
data = pd.concat([pd.Series(x,name='x'),pd.Series(y,name='sin(x)')], axis=1)