I have two lists and an array that need to be transformed into a DataFrame. This is more or less what I have:
listA = ['a', 'b', 'c', 'd']
listB = ['x', 'y', 'z']
array = [[10, 11, 12], [20, 21, 22], [30, 31, 32], [40, 41, 42]]
I want my DataFrame to be like this:
I've tried creating the DataFrame by inserting the lists into
pd.Dataframe()
and then specifying what the column's name should be. But no luck so far.
