home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 615499609

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/3213#issuecomment-615499609 https://api.github.com/repos/pydata/xarray/issues/3213 615499609 MDEyOklzc3VlQ29tbWVudDYxNTQ5OTYwOQ== 1217238 2020-04-17T23:01:15Z 2020-04-17T23:01:15Z MEMBER

Wrapping scipy.sparse in xarray would present two challenges:

  1. It only supports 2D arrays, which feels awkward for a library focused on N-dimensional data.
  2. There is no existing "duck array" compatibility layer (i.e., __array_function__) that makes scipy.sparse matrices work like NumPy arrays (in fact, they actually are designed to mimic the deprecated np.matrix).

(2) is the biggest challenge. I don't want to maintain that compatibility layer inside xarray, but if it existed we would be happy to try using it.

pydata/sparse solves both these problems, though again indeed it only has quite limited data structures.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  479942077
Powered by Datasette · Queries took 0.782ms · About: xarray-datasette