I am trying to change the values in a column of a CSR matrix, but I am getting the following message:
SparseEfficiencyWarning: Changing the sparsity structure of a csr_matrix is expensive. lil_matrix is more efficient.
However, the program does not abort and it gives the desired results.