Output sparse matrix to csv

Maybe it’s this?

See some old discussion here.

Just as an aside, if your data is small enough to open up in excel, you might not need a sparse matrix at all.