I got this:
columns = ['a','b','c']
data = [1,2,3],[3,4],[4,5,5]
df = pandas.DataFrame({i:pandas.Series(j) for i in columns for j in data})
print(df)
Output:
a b c
0 4 4 4
1 5 5 5
2 5 5 5
I need:
a b c
0 1 3 4
1 2 4 5
2 3 5
I really don't understand why this is not working. I know I'm accessing the elements in data
in the right way.
Any tips?