home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 419476614

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/pull/2384#issuecomment-419476614 https://api.github.com/repos/pydata/xarray/issues/2384 419476614 MDEyOklzc3VlQ29tbWVudDQxOTQ3NjYxNA== 1217238 2018-09-07T15:29:40Z 2018-09-07T15:29:40Z MEMBER

What about a DataArray method called replace_data or with_data? e.g., data_array.replace_data(new_data) or data_array.with_data(new_data).

We could also make a more general DataArray.replace method (inspired by collections.namedtuple._replace) that lets you replace any of data, coords, dims, attrs or encoding on a top object. Then this would look like data_array.replace(new_data) or data_array.replace(attrs=new_attrs). Replacing name or dims could invoke the rename() method.

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