I have this np array and trying to add a number to one of just one of lines(trying to make asymmetric array if possible and if not a 100*3 array is also ok)
a=np.arange(100*2).reshape(-1,2)
a[40]=np.append(a[40],6)
note that a=np.arange(100*2).reshape(-1,2) is just simplified example and not real code that I wanna manipulate.
and I receive this error
ValueError: could not broadcast input array from shape (3) into shape (2)
is there any simple solution(except making new array and filling it with loop with previous value then adding 6)?