I have a list as such:
[[None, 'ASK', 'BID'], ['4Y', 343.545, 344.621],['7Y', 0.016, 0.015],['9Y', 99.9, 99.8]]
and I would like to convert that into a dataframe as such:
'4Y' | 'ASK' | 343.545
'4Y' | 'BID' | 344.621
'7Y' | 'ASK' | 0.016
'7Y' | 'BID' | 0.015
'9Y' | 'ASK' | 99.9
'9Y' | 'BID' | 99.8
I've tried all sorts of "loopy" ways, but they seem terribly ugly and inefficient.
pd.DataFrame(the_array)?Noneis present only as the 0th element of the 0th sublist.