Very neat approach in combination with the ```sparse_matrix.sum(axis=1)```.