home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 696047530 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • dcherian 2
  • eric-czech 1

author_association 2

  • MEMBER 2
  • NONE 1

issue 1

  • Dataset.encode_cf function · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1542465745 https://github.com/pydata/xarray/issues/4412#issuecomment-1542465745 https://api.github.com/repos/pydata/xarray/issues/4412 IC_kwDOAMm_X85b8CjR dcherian 2448579 2023-05-10T16:06:26Z 2023-05-10T16:06:54Z MEMBER

Related request for to_zarr(..., encode_cf=False): https://github.com/pydata/xarray/issues/5405

This came up in the discussion today.

cc @tom-white @kmuehlbauer

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Dataset.encode_cf function 696047530
689046158 https://github.com/pydata/xarray/issues/4412#issuecomment-689046158 https://api.github.com/repos/pydata/xarray/issues/4412 MDEyOklzc3VlQ29tbWVudDY4OTA0NjE1OA== eric-czech 6130352 2020-09-08T18:06:23Z 2020-09-08T18:06:23Z NONE

Ok thanks @dcherian! I'll try that (feel free to close this).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Dataset.encode_cf function 696047530
689034023 https://github.com/pydata/xarray/issues/4412#issuecomment-689034023 https://api.github.com/repos/pydata/xarray/issues/4412 MDEyOklzc3VlQ29tbWVudDY4OTAzNDAyMw== dcherian 2448579 2020-09-08T17:42:41Z 2020-09-08T17:42:41Z MEMBER

Not at the moment.

I think we should add an xr.encode_cf that wraps conventions.cf_encoder (this may have already come up in the "flexible backends" discussions). This would parallel xr.decode_cf

https://github.com/pydata/xarray/blob/66259d1853b85590bfbf6640fdfb868843812312/xarray/conventions.py#L740-L793

It'll also need to wrap this logic: https://github.com/pydata/xarray/blob/66259d1853b85590bfbf6640fdfb868843812312/xarray/backends/api.py#L1113-L1127

For simple use cases, you could write a small wrapper for .cf_encoder that takes datasets and returns datasets and it should work just fine (Look at conventions.decode_cf).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Dataset.encode_cf function 696047530

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 14.755ms · About: xarray-datasette