what is the fastest way to fill every row in 2d array that contains all zeros with different value.
Only the rows that all contain Zero..
the only idea I have is a loop and using np.all() to check every row
array([[2, 6, 9, 7, 0],
[0, 0, 0, 0, 0],
[3, 8, 5, 4, 7]])
array([[2, 6, 9, 7, 0],
[1, 1, 1, 1, 1],
[3, 8, 5, 4, 7]])