home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1204156997

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/pull/6823#issuecomment-1204156997 https://api.github.com/repos/pydata/xarray/issues/6823 1204156997 IC_kwDOAMm_X85HxfpF 14371165 2022-08-03T16:05:10Z 2022-08-03T16:05:10Z MEMBER

I guess we could introduce some sort of xarray specific formatting mini-language to solve that? For example:

* `f"{arr:r}": print the object's `repr` (the default)

* `f"{arr:b}": print the array backend's `repr`(only for`DataArray`/`Variable`)

Interesting idea. I was thinking just adding format_spec to formatting.array_repr so the repr can handle __format__ as well should be enough. It seemed much more involved though.

Anyway that's for another PR. I think this PR is ready now, I think it should handle the main request in #5976 without being so intrusive in other cases.

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