Have a sparse matrix of shape (10,64) and have a numpy array with shape (10,). I want to concat the the matrices so the new matrix has dimensions (10,65). I have tried this but I keep on getting this error 'ValueError: zero-dimensional arrays cannot be concatenated'
d = np.concatenate((a,np.concatenate(b)[:,None]),axis=1)
EDIT:
Working Solution
from scipy.sparse import csr_matrix
import numpy as np
C=np.vstack((A.A.T,B)).T
D=csr_matrix((C)) #