home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 662110153

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/2773#issuecomment-662110153 https://api.github.com/repos/pydata/xarray/issues/2773 662110153 MDEyOklzc3VlQ29tbWVudDY2MjExMDE1Mw== 14808389 2020-07-21T21:14:46Z 2020-07-21T21:15:31Z MEMBER

Instead of trying to come up with our own formatting, how about supporting a _repr_short_(self, length) method on the duck array (with a fall back to the current behavior)? That way duck arrays have to explicitly define the format (or have a compatibility package like pint-xarray provide it for them) if they want something different from their normal repr and we don't have to add duck array specific code.

This won't help with displaying the units attributes (which we don't really need once we have support for pint arrays in indexes).

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  411365882
Powered by Datasette · Queries took 0.882ms · About: xarray-datasette