Compactly written as `events_out[events[:, col] == ii, col] = new_id` ?