home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 706548763

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/4498#issuecomment-706548763 https://api.github.com/repos/pydata/xarray/issues/4498 706548763 MDEyOklzc3VlQ29tbWVudDcwNjU0ODc2Mw== 145117 2020-10-10T13:23:24Z 2020-10-10T13:23:24Z CONTRIBUTOR

The every 4th or 5th lag is not in the creation, it's in the resample:

````

+BEGIN_SRC jupyter-python :kernel ds :session bugreport

for i in np.arange(25): start = time.time() ds_r = ds.resample({'time':"1H"}) print('xr', str(time.time() - start))

+END_SRC

+RESULTS:

+begin_example

xr 0.04479050636291504 xr 0.047682762145996094 xr 0.8904871940612793 xr 0.05605506896972656 xr 0.0452876091003418 xr 0.0467374324798584 xr 0.8709239959716797 xr 0.05595755577087402 xr 0.046492576599121094 xr 0.04648017883300781 xr 0.045223236083984375 xr 0.8187246322631836 xr 0.05060911178588867 xr 0.04763054847717285 xr 0.8156075477600098 xr 0.055490970611572266 xr 0.047312259674072266 xr 0.04651069641113281 xr 0.8001837730407715 xr 0.05546212196350098 xr 0.04549074172973633 xr 0.04680013656616211 xr 0.04383039474487305 xr 0.7662224769592285 xr 0.04914355278015137

+end_example

````

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