issues: 485508509
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
485508509 | MDU6SXNzdWU0ODU1MDg1MDk= | 3267 | Resample excecution time is significantly longer in version 0.12 than 0.11 | 20617032 | closed | 0 | 5 | 2019-08-26T23:51:11Z | 2023-04-29T03:30:20Z | 2023-04-29T03:30:20Z | NONE | MCVE Code Sample```python import numpy as np import xarray as xr import pandas as pd import time size = 1000000 data = np.random.random(size) times = pd.date_range('2019-01-01', periods=size, freq='ms') da = xr.DataArray(data, dims=['time'], coords={'time': times}) start = time.time() da.resample(time='s').mean() print('Elapsed time: ' + str(time.time() - start)) print('xarray version: ' + str(xr.version)) ```
Elapsed time: 0.2671010494232178 xarray version: 0.11.3
Elapsed time: 6.652455568313599 xarray version: 0.12.0 Expected OutputI expect that for the default parameters, resample should take a similar amount of time as previous versions. Or at least the documentation should specify what parameters must be passed into resample or mean to achieve the same time as in version 0.11.3 Problem Descriptionresampling a dataarray or dataset and then calling mean takes significantly longer in the latest versions of xarray 0.12. The changelog specifies multiple changes to the resample method and new parameters, but its not clear what one would specify to achieve execution time improvements. Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3267/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |