Can’t broadcast input array from shape (3,1) into shape (3,)

V[k:m,k] = vv has shape (3,1), but the target is (3,). k:m is a 3 term slice; k is a scalar.

Try using v.ravel(). Or V[k:m,[k]].

But also understand why v has its shape.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)