I have a Numpy array like this:
[[ a, b, c] [ d, d, e] [ d, f, g ]] How would I go about replacing every instance of char d in this 2d array while keeping the shape of the array? Assuming temp is our 2d array, I tried this but it did not work:
for i in range(len(temp)): temp[i].replace('d','')