I am new to python..I have two sorted arrays (by key) that I would like to merge. Both arrays have some common keys and some exist uniquely in one of the arrays. I want to do an outer join.
Array1 = {'key_1': 10, 'key_2': 14,..'key_m': 321}
Array2 = {'key_1': 15, 'key_2': 12..'key_m':2,..'key_n':34}
I want to merge using key_1..key_n..
Array3 = [[key_1',10,15],['key_2':14:12],..]
I don’t have numpy package installed on my computer. Do I need it to merge this array? what is the best way to code this up? Thanks!!!
How about this?
Now
dict3has a list of every value from the input arrays.Or if you want it in that
[[key, value, value], [key, value, value]...]format: