home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1742515243

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
1742515243 I_kwDOAMm_X85n3Kwr 7895 Have a minimum observation keyword to Dataset.groupby() and DataArray.groupby() methods to remove bins with very few observations. 56941602 open 0     0 2023-06-05T20:00:11Z 2023-06-06T14:24:07Z   NONE      

Is your feature request related to a problem?

For the dataset groupby and data array groupby I often end up with a groups that have too few observations to be useful for statistics of plotting and have to go through and remove those bins before analysis or plotting.

Describe the solution you'd like

I would love to have a keyword that would let users remove bins below a certain number of observations. I usually don't want bins with 1-10 observations when plotting or doing statistics. I was thinking min_observation for each method and then just filter out bins below that number of observations.

Describe alternatives you've considered

I recognize that users can go through and filter out and skip bins with too few values during plotting or analysi, but this might be convenient.

Additional context

I have not contributed before and was thinking this might be an appropriately sized project to contribute back to xarray, but I wanted to see if I was missing something about why this isn't an option before I worked on it.

It seems like the code would be limited to the groupby code and the groupby tests.

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

Links from other tables

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