home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 412054270

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/2236#issuecomment-412054270 https://api.github.com/repos/pydata/xarray/issues/2236 412054270 MDEyOklzc3VlQ29tbWVudDQxMjA1NDI3MA== 30219501 2018-08-10T11:20:40Z 2018-08-10T11:24:37Z NONE

Ok. The strange thing with the spatial dimensions is, that the new syntax forces the user to tell exactly, on which dimension the mathematical operator for resampling (like sum) should be applied. The syntax is now data.resample(time="M").sum(dim="time",min_count=1).

That weird - two times giving the dimension. However, doing so the xarray is not summing up for, e.g. the first month, all values he finds in a specific dataaray, but only those values along the dimension time.

AND NOW, the good new is that I got the following picture with your 'min_count=0' and 'min_count=1':

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