home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1499878014

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/7730#issuecomment-1499878014 https://api.github.com/repos/pydata/xarray/issues/7730 1499878014 IC_kwDOAMm_X85ZZlJ- 2448579 2023-04-07T02:56:29Z 2023-04-07T02:56:29Z MEMBER

Also because your groups are sorted, engine='flox' is faster

```python gb = da.groupby("time.year")

using max

xr.set_options(use_flox=True) %timeit gb.max("time") %timeit gb.max("time", engine="flox")

xr.set_options(use_flox=False) %timeit gb.max("time") ```

177 ms ± 3.24 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) 11.9 ms ± 471 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) 18.5 ms ± 629 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)

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