home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 218879360

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/818#issuecomment-218879360 https://api.github.com/repos/pydata/xarray/issues/818 218879360 MDEyOklzc3VlQ29tbWVudDIxODg3OTM2MA== 1217238 2016-05-12T20:41:18Z 2016-05-12T20:41:18Z MEMBER

@rabernat It's possibly a better idea to use np.digitize rather than pd.cut.

I would strongly suggest controlling labeling with a keyword argument, maybe similar to diff.

Again, rather then further overloading the user facing API .groupby(), the binning is probably best expressed in a separate method. I would suggest a .bin(bins) method on Dataset/DataArray. Then you could just use a normal call to (multi-dimensional) groupby. So instead, we might have: ds.sample_tsurf.assign(lat_bin=ds.TLAT.bin(lat_bins)).groupby('lat_bins').mean().

On second thought, this is significantly more verbose, so maybe bins in the groupby call is OK.

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