How to read row_name, col_name, value format TSV into a sparse matrix?

Peng Yu <[email protected]> Tue, 28 Jan 2020 21:09:14 -0600
Newsgroups gmane.comp.python.scientific.user
Message-ID <CABrM6wnOayFPz6sy-i4XVwcUYLJBNU7TUiwOn+fr+Zm-tmAM6Q@mail.gmail.com>
Suppose that I have a TSV file in the following format.

```
row_name<TAB>col_name<TAB>value
```

Is there an easy way to read it into a sparse matrix format in scipy? Thanks.

I don't see such examples in the doc.

https://docs.scipy.org/doc/scipy/reference/sparse.html

-- 
Regards,
Peng