home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 1593602847 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 2

  • eendebakpt 2
  • keewis 1

author_association 2

  • CONTRIBUTOR 2
  • MEMBER 1

issue 1

  • DatasetGroupBy.mean discards attributes on coordinate · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1438742082 https://github.com/pydata/xarray/issues/7546#issuecomment-1438742082 https://api.github.com/repos/pydata/xarray/issues/7546 IC_kwDOAMm_X85VwXZC eendebakpt 883786 2023-02-21T16:10:21Z 2023-02-21T16:10:21Z CONTRIBUTOR

@keewis The problem only occurs if flox is not installed.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DatasetGroupBy.mean discards attributes on coordinate 1593602847
1438735599 https://github.com/pydata/xarray/issues/7546#issuecomment-1438735599 https://api.github.com/repos/pydata/xarray/issues/7546 IC_kwDOAMm_X85VwVzv eendebakpt 883786 2023-02-21T16:06:11Z 2023-02-21T16:06:11Z CONTRIBUTOR

@keewis I get different output. This is with xarray 2022.12.0

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DatasetGroupBy.mean discards attributes on coordinate 1593602847
1438647770 https://github.com/pydata/xarray/issues/7546#issuecomment-1438647770 https://api.github.com/repos/pydata/xarray/issues/7546 IC_kwDOAMm_X85VwAXa keewis 14808389 2023-02-21T15:09:43Z 2023-02-21T15:09:43Z MEMBER

Could you post the output you get? If I try it locally, I get: python In [3]: import xarray as xr ...: import pandas as pd ...: import numpy as np ...: ...: da = xr.DataArray( ...: np.array([1, 2, 3, 1, 2, np.nan]), ...: dims="time", ...: coords=dict( ...: time=("time", pd.date_range("01-01-2001", freq="M", periods=6)), ...: labels=("time", np.array(["a", "b", "c", "c", "b", "a"])), ...: ), ...: ) ...: da.labels.attrs["units"] = "a.u." ...: ...: ds = xr.Dataset(dict(da=da)) ...: ds.attrs["units"] = "V" ...: display(ds) ...: ...: m = ds.groupby("labels").mean(keep_attrs=True) ...: display(m) ...: display(m.labels) # labels has attribute for units <xarray.Dataset> Dimensions: (time: 6) Coordinates: * time (time) datetime64[ns] 2001-01-31 2001-02-28 ... 2001-06-30 labels (time) <U1 'a' 'b' 'c' 'c' 'b' 'a' Data variables: da (time) float64 1.0 2.0 3.0 1.0 2.0 nan Attributes: units: V <xarray.Dataset> Dimensions: (labels: 3) Coordinates: * labels (labels) object 'a' 'b' 'c' Data variables: da (labels) float64 1.0 2.0 2.0 Attributes: units: V <xarray.DataArray 'labels' (labels: 3)> array(['a', 'b', 'c'], dtype=object) Coordinates: * labels (labels) object 'a' 'b' 'c' Attributes: units: a.u. which looks fine to me? But maybe I'm missing something?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DatasetGroupBy.mean discards attributes on coordinate 1593602847

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 15.558ms · About: xarray-datasette