I have declared a csr_matrix like this:
ff=csr_matrix((16064320, 66159), dtype=np.int16)
But when I try to update an element of the matrix (e.g. ff[1,0]=1), it gives the following warning message:
SparseEfficiencyWarning: Changing the sparsity structure of a csr_matrix is expensive. lil_matrix is more efficient. self._set_intXint(row, col, x.flat[0])