I am attempting to converting a 2 key dictionary with lists of tuples as values into a pandas DataFrame. The data I am working with looks like this:
dictionary={'Week':[(week1,week2),(week3,week4)],'Numbers':[(number1,number2),(number3,number4)]}
Is there anyway to convert this into a pandas DataFrame that looks like:
Week Numbers
week1 number1
week2 number2
week3 number3
week4 number4
I have tried forcing the dictionary into a DataFrame using pandas.DataFrame(dictionary)
but I end up with one row with two very wide columns. Any guidance will be greatly appreciated!