home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 430203605

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
430203605 MDU6SXNzdWU0MzAyMDM2MDU= 2876 Custom fill value for align, reindex and reindex_like 1217238 closed 0     2 2019-04-07T23:08:17Z 2019-05-05T00:20:55Z 2019-05-05T00:20:55Z MEMBER      

It would be nice to be able to specify a custom fill value other than NaN for alignment/reindexing, e.g., ```

xr.DataArray([0, 0], [('x', [1, 2])]).reindex(x=[0, 1, 2, 3], fill_value=-1) <xarray.DataArray (x: 4)> array([-1, 0, 0, -1]) Coordinates: * x (x) int64 1 2 3 4 ```

This should be pretty straightforward, simplify a matter of adding a fill_value keyword argument to the various interfaces and passing it on to Variable.__getitem_with_mask inside xarray.core.alignment.reindex_variables().

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2876/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 3 rows from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 0.545ms · About: xarray-datasette