Alternatively I created a small python script to replace at index in two dimensions a while back that might be able to accomplish your objective
Alternatively I created a small python script to replace at index in two dimensions a while back that might be able to accomplish your objective