Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Table: Fix ensure_copy for sparse matrices
`ensure_copy` is checking whether an array is a view through the `.base` argument which doesn't exist on `scipy.sparse` matrices. Since `scipy.sparse` don't work with views (e.g. indexing returns a copy of the matrix) the check should only be performed for dense matrices.
- Loading branch information