home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 741200389 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

  • mathause 1
  • WardBrian 1

author_association 2

  • CONTRIBUTOR 1
  • MEMBER 1

issue 1

  • FacetGrid.set_title should allow more extensive formatting · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
726921555 https://github.com/pydata/xarray/issues/4575#issuecomment-726921555 https://api.github.com/repos/pydata/xarray/issues/4575 MDEyOklzc3VlQ29tbWVudDcyNjkyMTU1NQ== WardBrian 31640292 2020-11-13T17:57:48Z 2020-11-13T17:57:48Z CONTRIBUTOR

Yes, I think you could change

https://github.com/pydata/xarray/blob/b76a13f042571d01ca07461f13125a030f7297ea/xarray/core/formatting.py#L144

to np.issubdtype(x, np.floating) so it formats all floats.

This seems simple enough and fixes the main issue I was facing. I may look into the more extensible changes later if I have time, they would still be nice to have.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  FacetGrid.set_title should allow more extensive formatting 741200389
726635243 https://github.com/pydata/xarray/issues/4575#issuecomment-726635243 https://api.github.com/repos/pydata/xarray/issues/4575 MDEyOklzc3VlQ29tbWVudDcyNjYzNTI0Mw== mathause 10194086 2020-11-13T08:55:20Z 2020-11-13T08:55:20Z MEMBER

Yes, I think you could change https://github.com/pydata/xarray/blob/b76a13f042571d01ca07461f13125a030f7297ea/xarray/core/formatting.py#L144 to np.issubdtype(x, np.floating) so it formats all floats.

The other seems a bit more complicated: set_title has a template https://github.com/pydata/xarray/blob/b76a13f042571d01ca07461f13125a030f7297ea/xarray/plot/facetgrid.py#L461 but it uses format_item to format the numbers first https://github.com/pydata/xarray/blob/b76a13f042571d01ca07461f13125a030f7297ea/xarray/plot/facetgrid.py#L26 you could probably add a float_format="{:.4}" keyword argument to this function and set_titles.

We'd be happy to take a PR.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  FacetGrid.set_title should allow more extensive formatting 741200389

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