The sparse library has hstack and vstack for concatenating matrices horizontally and vertically respectively. Look at the following code for the reference.
from scipy import sparsedata1 = np.load('filename1.npy').tolist()data2 = np.load('filename2.npy').tolist()merged_data = sparse.vstack((data1,data2), format='csr') #merge the data
from scipy import sparse
data1 = np.load('filename1.npy').tolist()
data2 = np.load('filename2.npy').tolist()
merged_data = sparse.vstack((data1,data2), format='csr') #merge the data
The above code will generate the merged data in CSR format.