rok opened a new pull request, #46423:
URL: https://github.com/apache/arrow/pull/46423

   ### Rationale for this change
   
   As per [SciPy's migration 
guide](https://scipy.github.io/devdocs/reference/sparse.migration_to_sparray.html)
 it would be good to change the constructors we use when creating scipy's 
sparse object. Further we should allow for creating sparse arrow objects from 
`scipy.sparray` (currently only `scipy.spmatrix)` objects and test for it.
   
   ### What changes are included in this PR?
   
   This adjusts `pa.SparseCXXMatrix` constructors and 
`pa.SparseCXXMatrix.to_scipy` to achieve goals listed above and adds tests.
   
   ### Are these changes tested?
   
   Yes.
   
   ### Are there any user-facing changes?
   
   `pyarrow.coo_matrix.to_scipy` and `pyarrow.csr_matrix.to_scipy` would now 
return different types (sparray instead of spmatrix) which would probably be a 
breaking change (behaviors of the types would be similar).
   
   Additionally `pa.SparseCXXMatrix.from_scipy` would now take `scipy.sparray` 
and `scipy.spmatrix` which would not be a breaking change.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to