I have three dictionaries (more actually) in Python that I need to "combine rows and merge columns" into a Pandas dataframe, although merge might not be the correct term here. My question is best illustrated by example. The three input dictionaries are:
a = { 'name': name1, 'one': 123, 'two':456, 'three': 789 }
b = { 'name': name2, 'ten': 1230, 'eleven':4560, 'twelve': 7890 }
c = { 'name': name3, 'fifty': 12300, 'sixty':45600, 'seventy': 78900 }
I need to "combine and merge" these into an output list of dictionaries to looks like:
one two three ten eleven twelve fifty sixty seventy
name1 123 456 789 0 0 0 0 0 0
name2 0 0 0 1230 4560 7890 0 0 0
name3 0 0 0 0 0 0 12300 45600 78900
Are there any Pandas methods to accomplish this "combine and merge"? Or would the best approach be to build a python ordered list of dictionaries and manually manage the columns?
Any point