home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 391477755

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
391477755 MDExOlB1bGxSZXF1ZXN0MjM4OTcyNzU5 2612 Added Coarsen 6815844 closed 0     16 2018-12-16T15:28:31Z 2019-01-06T09:13:56Z 2019-01-06T09:13:46Z MEMBER   0 pydata/xarray/pulls/2612
  • [x] Closes #2525
  • [x] Tests added
  • [x] Fully documented, including whats-new.rst for all changes and api.rst for new API

Started to implement corsen. The API is currently something like python actual = ds.coarsen(time=2, x=3, side='right', coordinate_func={'time': np.max}).max()

Currently, it is not working for a datetime coordinate, since mean does not work for this dtype. e.g. python da = xr.DataArray(np.linspace(0, 365, num=365), dims='time', coords={'time': pd.date_range('15/12/1999', periods=365)}) da['time'].mean() # -> TypeError: ufunc add cannot use operands with types dtype('<M8[ns]') and dtype('<M8[ns]')

I am not familiar with datetime things. Any advice will be appreciated.

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

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 16 rows from issue in issue_comments
Powered by Datasette · Queries took 0.623ms · About: xarray-datasette