home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

10 rows where issue = 203999231 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 6

  • shoyer 3
  • gerritholl 2
  • stale[bot] 2
  • max-sixty 1
  • mathause 1
  • luca-cavalleri-radix 1

author_association 3

  • MEMBER 5
  • NONE 3
  • CONTRIBUTOR 2

issue 1

  • `set_index` converts string-dtype to object-dtype · 10 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1466214662 https://github.com/pydata/xarray/issues/1238#issuecomment-1466214662 https://api.github.com/repos/pydata/xarray/issues/1238 IC_kwDOAMm_X85XZKkG luca-cavalleri-radix 95621116 2023-03-13T14:09:21Z 2023-03-13T14:09:21Z NONE

Still relevant

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `set_index` converts string-dtype to object-dtype 203999231
751254357 https://github.com/pydata/xarray/issues/1238#issuecomment-751254357 https://api.github.com/repos/pydata/xarray/issues/1238 MDEyOklzc3VlQ29tbWVudDc1MTI1NDM1Nw== mathause 10194086 2020-12-25T14:07:05Z 2020-12-25T14:07:05Z MEMBER

still relevant

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `set_index` converts string-dtype to object-dtype 203999231
751231519 https://github.com/pydata/xarray/issues/1238#issuecomment-751231519 https://api.github.com/repos/pydata/xarray/issues/1238 MDEyOklzc3VlQ29tbWVudDc1MTIzMTUxOQ== stale[bot] 26384082 2020-12-25T10:50:41Z 2020-12-25T10:50:41Z NONE

In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity

If this issue remains relevant, please comment here or remove the stale label; otherwise it will be marked as closed automatically

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `set_index` converts string-dtype to object-dtype 203999231
457220713 https://github.com/pydata/xarray/issues/1238#issuecomment-457220713 https://api.github.com/repos/pydata/xarray/issues/1238 MDEyOklzc3VlQ29tbWVudDQ1NzIyMDcxMw== shoyer 1217238 2019-01-24T14:42:21Z 2019-01-24T14:42:21Z MEMBER

I think this will eventually get fixed "for free" as part of the explicit indexes refactor.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `set_index` converts string-dtype to object-dtype 203999231
457207288 https://github.com/pydata/xarray/issues/1238#issuecomment-457207288 https://api.github.com/repos/pydata/xarray/issues/1238 MDEyOklzc3VlQ29tbWVudDQ1NzIwNzI4OA== max-sixty 5635139 2019-01-24T14:03:22Z 2019-01-24T14:03:22Z MEMBER

Thanks @gerritholl

More broadly: is this reasonable to fix, given how much we rely on pandas' indexing, given that pandas converts string arrays to object dtype?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `set_index` converts string-dtype to object-dtype 203999231
457120865 https://github.com/pydata/xarray/issues/1238#issuecomment-457120865 https://api.github.com/repos/pydata/xarray/issues/1238 MDEyOklzc3VlQ29tbWVudDQ1NzEyMDg2NQ== gerritholl 500246 2019-01-24T09:07:52Z 2019-01-24T09:07:52Z CONTRIBUTOR

This behaviour appears to be still current.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `set_index` converts string-dtype to object-dtype 203999231
457067643 https://github.com/pydata/xarray/issues/1238#issuecomment-457067643 https://api.github.com/repos/pydata/xarray/issues/1238 MDEyOklzc3VlQ29tbWVudDQ1NzA2NzY0Mw== stale[bot] 26384082 2019-01-24T05:00:30Z 2019-01-24T05:00:30Z NONE

In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity If this issue remains relevant, please comment here; otherwise it will be marked as closed automatically

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `set_index` converts string-dtype to object-dtype 203999231
276142223 https://github.com/pydata/xarray/issues/1238#issuecomment-276142223 https://api.github.com/repos/pydata/xarray/issues/1238 MDEyOklzc3VlQ29tbWVudDI3NjE0MjIyMw== shoyer 1217238 2017-01-30T18:09:14Z 2017-01-30T18:09:14Z MEMBER

No, pandas uses dtype=object to represent strings. We paper over this in some cases in xarray because it's convenient to get objects with the original dtype back from array.data.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `set_index` converts string-dtype to object-dtype 203999231
276141026 https://github.com/pydata/xarray/issues/1238#issuecomment-276141026 https://api.github.com/repos/pydata/xarray/issues/1238 MDEyOklzc3VlQ29tbWVudDI3NjE0MTAyNg== gerritholl 500246 2017-01-30T18:05:36Z 2017-01-30T18:05:36Z CONTRIBUTOR

Is this a bug in pandas? I'm probably a rare breed in being an xarray user who has not used pandas.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `set_index` converts string-dtype to object-dtype 203999231
276138760 https://github.com/pydata/xarray/issues/1238#issuecomment-276138760 https://api.github.com/repos/pydata/xarray/issues/1238 MDEyOklzc3VlQ29tbWVudDI3NjEzODc2MA== shoyer 1217238 2017-01-30T17:59:29Z 2017-01-30T17:59:29Z MEMBER

PandasIndexAdapter contains some logic for preserving dtypes but it looks like didn't hook that up to set_index machinery.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `set_index` converts string-dtype to object-dtype 203999231

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