home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 402524911

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/2267#issuecomment-402524911 https://api.github.com/repos/pydata/xarray/issues/2267 402524911 MDEyOklzc3VlQ29tbWVudDQwMjUyNDkxMQ== 1200058 2018-07-04T16:45:39Z 2018-07-04T16:45:39Z NONE

As an explanation: I'd like to change my program to only use lazy / chunked calculations in order to save RAM.

I recognized that np.broadcast_to converts the DataArray into a numpy one. Therefore I needed some xarray way to solve this.

I tried: python DataArray.expand_dims("new_dim").isel("new_dim", np.repeat(0, target_dim_size)) but this really looks ugly and I'm not sure about the performance implications of this.

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