I have the following 2d array [[2,3,4],[4,4,2]
and the following dictionary {2:7,3:5,4:6}
I would like somehow to transform the array using the dictionary, i.e. have as an output the following result:
[[7,5,6],[6,6,7]]
Is there a simple (maybe built-in function) to do so?