home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 524407909

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/3245#issuecomment-524407909 https://api.github.com/repos/pydata/xarray/issues/3245 524407909 MDEyOklzc3VlQ29tbWVudDUyNDQwNzkwOQ== 1217238 2019-08-23T18:00:45Z 2019-08-23T18:00:45Z MEMBER
  • Should we formalize the convention that .values always return a numpy array i.e. it will call todense() implicitly and that .data will always return the underlying container: sparse/dask etc.?

I think .values should either return a NumPy array or raise an exception, based upon whether or not the underlying duck array supports coercion with np.array().

We should have a separate API (maybe .to_dense() or .to_numpy_data()?) for explicitly converting into NumPy arrays. This should not be called automatically inside xarray.

Basically, we should leave the decision about whether automatic coercion is safe up to the authors of duck array libraries.

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