home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 899015876 and user = 14808389 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • keewis · 3 ✖

issue 1

  • Add support for cross product · 3 ✖

author_association 1

  • MEMBER 3
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
893887471 https://github.com/pydata/xarray/pull/5365#issuecomment-893887471 https://api.github.com/repos/pydata/xarray/issues/5365 IC_kwDOAMm_X841R6Pv keewis 14808389 2021-08-05T23:24:53Z 2021-08-05T23:24:53Z MEMBER

we discussed this in the meeting yesterday, and decided that since it makes the code cleaner and there's the dim parameter of to_array and to_dataset (which I didn't know about when I suggested the ugly to_unstacked_array hack) we would like to restrict .cross to accept only DataArray objects. Could you make that change?

To increase their visibility it would probably also be good to show how to use to_array and to_dataset to pass Dataset objects to .cross.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add support for cross product 899015876
886951200 https://github.com/pydata/xarray/pull/5365#issuecomment-886951200 https://api.github.com/repos/pydata/xarray/issues/5365 IC_kwDOAMm_X8403c0g keewis 14808389 2021-07-26T19:03:21Z 2021-07-26T19:03:21Z MEMBER

The use case is something similar to: python ds = xr.Dataset({"x": ("t", [0, 1]), "y": ("t", [2, 3]), "z": ("t", [4, 5])}) arr = xr.DataArray(data=[0, 2, 4], dims="cartesian", coords={"cartesian": ["x", "y", "z"]}) xr.cross(arr, ds, dim="cartesian") # result: Dataset with x, y, z variables This does return what I want it to (which is why I don't think it is a bug), but my worry was that since ds does not have a dimension called "cartesian" it might be surprising that this works (though good documentation might help).

In any case, I'd like to get the opinion of other maintainers: is the integrated conversion worth the trouble, or should we make combining / splitting variables easier?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add support for cross product 899015876
886712077 https://github.com/pydata/xarray/pull/5365#issuecomment-886712077 https://api.github.com/repos/pydata/xarray/issues/5365 IC_kwDOAMm_X8402icN keewis 14808389 2021-07-26T13:38:53Z 2021-07-26T13:38:53Z MEMBER

I finally got around to testing this. This works really well for the use cases I tried, but the automatic conversion of Datasets with three variables to a DataArray is a bit surprising: python xr.cross(arr, ds, dim="cartesian") # ← ds does not have a "cartesian" dimension not sure what to do about that. @pydata/xarray, any ideas?

To be clear, the idea was to have a convenient way to convert a Dataset with three identically dimensioned variables to a DataArray with an additional additional dimension. If there's a concise way to do that I would lean towards not doing that in cross() (even though I was the one to propose it). For example: python xr.cross( arr, ds.to_array(concat_dim="cartesian"), dim="cartesian" ).to_dataset(cut_dim="cartesian")

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add support for cross product 899015876

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