home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1329680642

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/6610#issuecomment-1329680642 https://api.github.com/repos/pydata/xarray/issues/6610 1329680642 IC_kwDOAMm_X85PQVEC 2448579 2022-11-28T19:58:29Z 2022-11-28T23:23:42Z MEMBER

In https://github.com/xarray-contrib/flox/issues/191 @keewis proposes a much nicer API for multiple variables:

python data.groupby( xr.Grouper(by="x", bins=pd.IntervalIndex.from_breaks(coords["x_vertices"])), # binning xr.Grouper(by=data.y, labels=["a", "b", "c"]), # categorical, data.y is dask-backed xr.Grouper(by="time", freq="MS"), # resample )

Note pd.Grouper uses key instead of by so that's a possibility too.

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