home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 894498459

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
894498459 MDU6SXNzdWU4OTQ0OTg0NTk= 5332 Progressbar for groupby operations? 2444231 open 0     2 2021-05-18T15:19:19Z 2021-05-19T01:27:55Z   NONE      

I recently learned that tqdm can automatically create a progress bar for you when you are doing expensive groupby/map operations. See for instance here: https://stackoverflow.com/questions/18603270/progress-indicator-during-pandas-operations

Would it be simple to implement something similar in Xarray? The documentation seems to read as if the groupby is heavily inspired by pandas.


Is your feature request related to a problem? Please describe. No, everything works as expected, this would just be a "quality of life" improvement.

Describe the solution you'd like

The implementation in tqdm states: Registers the given `tqdm` instance with `pandas.core.groupby.DataFrameGroupBy.progress_apply`.

I suppose something similar would need to be implemented in Xarray, and then we might be able to copy the tqdm logic.

Describe alternatives you've considered I could loop over whatever dimension I have and make my own progress bar, but that seems like defeating the purpose of groupby.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5332/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

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