home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 897689314

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
897689314 MDU6SXNzdWU4OTc2ODkzMTQ= 5358 Support `range` in `groupby_bins` 30388627 closed 0     4 2021-05-21T05:25:12Z 2021-05-31T19:10:24Z 2021-05-21T12:44:39Z NONE      

Although groupby_bins supports setting bins as int, it doesn't support manually setting the range.

Here's an example:

``` from scipy.stats import binned_statistic import numpy as np import xarray as xr

--- scipy method ---

x = np.arange(500) values = x*50 statistics, _, _ = binned_statistic(x, values, statistic='min', bins=500, range=(0, 500))

--- xarray method ---

x = xr.DataArray(x) values = xr.DataArray(values) x.groupby_bins('dim_0', bins=500).min() ```

I can set range=(0, 500) in binned_statistic, how can I get the same result using groupby_bins? Is it suitable to add this new feature? I have also posted a similar question on StackOverflow.

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

Links from other tables

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