issue_comments: 366884882
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/1914#issuecomment-366884882 | https://api.github.com/repos/pydata/xarray/issues/1914 | 366884882 | MDEyOklzc3VlQ29tbWVudDM2Njg4NDg4Mg== | 1217238 | 2018-02-20T07:02:37Z | 2018-02-20T07:02:37Z | MEMBER |
data = xr.Dataset(coords={'x': np.linspace(-1, 1), 'y': np.linspace(0, 10), 'a': 1, 'b': 5}) def some_function(x, y): return float(x) * float(y) xr.apply_ufunc(some_function, data['x'], data['y'], vectorize=True)
You can even do this with dask arrays if you set That said, it does feel like there's some missing functionality here for the xarray equivalent of |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
297560256 |