home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 706688398

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-706688398 https://api.github.com/repos/pydata/xarray/issues/4498 706688398 MDEyOklzc3VlQ29tbWVudDcwNjY4ODM5OA== 145117 2020-10-11T11:11:47Z 2020-10-11T11:19:56Z CONTRIBUTOR

Thanks for the clarification that this is a real issue not due to just my coding, and the suggestion to solve this elsewhere. For now I just use the fast Pandas version with this code:

python df_h = ds.to_dataframe().resample("1H").mean() # what we want (quickly), but in Pandas form vals = [xr.DataArray(data=df_h[c], dims=['time'], coords={'time':df_h.index}, attrs=ds[c].attrs) for c in df_h.columns] ds_h = xr.Dataset(dict(zip(df_h.columns,vals)), attrs=ds.attrs)

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