I would like to create a dataframe from 2 python lists that I have.
Say I have the following 2 lists;
x = [1,2,3]
z = ['a','v','d']
I have initialized a dataframe
data = pd.DataFrame(columns = ['Type', 'Data']
and this is one of the things that I have tried doing.
df = data.append({'Type': x, 'Data' : z}, ignore_index = True)
but it results in the following dataframe
Type Data
0 [1, 2, 3] [a, v, d]
However, this is what I actually want it to look like
Type Data
0 1 a
1 2 v
2 3 d
How would I do this? Thank you in advance.