I've been working with some text data and I've got few sparse matrices and dense (numpy arrays). I just want to know how to combine them correctly.
These are the types and shape of the arrays:
list1
<109248x9 sparse matrix of type '<class 'numpy.int64'>'
with 152643 stored elements in Compressed Sparse Row format>
list2
<109248x3141 sparse matrix of type '<class 'numpy.int64'>'
with 350145 stored elements in Compressed Sparse Row format>
list3.shape , type(list3)
(109248, 300) , numpy.ndarray
list4.shape , type
(109248, 51) , numpy.ndarray
I just want to combine all of them together as one dense matrix. I tried some vstack and hstack but couldn't figure it out. Any help is much appreciated.
Output required: (109248, 3501)