Is there a convenient way to implement a function make_dataframe, used as follows
mydict = {
('tom', 'gray') : [1,2,3,4,5],
('bill', 'ginger') : [6,7,8,9,10],
}
make_dataframe(mydict, tupleLabels=['catname', 'catcolor'], valueLabel='weight')
Expected result
| catname | catcolor | weight |
| tom | gray | 1 |
| tom | gray | 2 |
| tom | gray | 3 |
| tom | gray | 4 |
| tom | gray | 5 |
| bill | ginger | 6 |
| bill | ginger | 7 |
| bill | ginger | 8 |
| bill | ginger | 9 |
| bill | ginger | 10 |
It does not sound too difficult, I just don't want to reinvent the wheel