def _coo_to_sparse_series(A, dense_index=False):
s = Series(A.data, MultiIndex.from_arrays((A.row, A.col)))<EOL>s = s.sort_index()<EOL>s = s.to_sparse()  <EOL>if dense_index:<EOL><INDENT>i = range(A.shape[<NUM_LIT:0>])<EOL>j = range(A.shape[<NUM_LIT:1>])<EOL>ind = MultiIndex.from_product([i, j])<EOL>s = s.reindex(ind)<EOL><DEDENT>return s<EOL>
Convert a scipy.sparse.coo_matrix to a SparseSeries.
Use the defaults given in the SparseSeries constructor.