I am trying to make a pandas dataframe using 2 paramters as columns. But it makes a dataframe transpose of what I need.
I have a
and b
as column parameters as follows:
a=[1,2,3,4,5]
b=[11,22,33,44,55]
pd.DataFrame([a,b])
This gives the following dataframe:
0 1 2 3 4
0 1 2 3 4 5
1 11 22 33 44 55
However, I want the dataframe as:
0 1
0 1 11
1 2 22
2 3 33
3 4 44
4 5 55