home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 275463531

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/1199#issuecomment-275463531 https://api.github.com/repos/pydata/xarray/issues/1199 275463531 MDEyOklzc3VlQ29tbWVudDI3NTQ2MzUzMQ== 1217238 2017-01-26T18:06:14Z 2017-01-26T18:06:14Z MEMBER

OK, let's go back to the drawing board.

Let ds = xr.Dataset({'foo': (('x', 'y'), [[1, 2], [3, 4]])}, {'x': [1, 2]}).

Current repr (v0.9.0): <xarray.Dataset> Dimensions: (x: 2, y: 2) Coordinates: * x (x) int64 1 2 Unindexed dimensions: y Data variables: foo (x, y) int64 1 2 3 4

Some alternatives:

  • Rename "Unindexed dimensions" to "Dimensions without coordinates". This is clearer but pretty verbose: ``` <xarray.Dataset> Dimensions: (x: 2, y: 2) Coordinates:
  • x (x) int64 1 2 Dimensions without coordinates: y Data variables: foo (x, y) int64 1 2 3 4 ```

  • Same as above, but with everything on one line (less obtrusive): ``` <xarray.Dataset> Dimensions: (x: 2, y: 2) Coordinates:

  • x (x) int64 1 2 Data variables: foo (x, y) int64 1 2 3 4 Dimensions without coordinates: y ```

  • Mark Dimensions with an index with * before there name. @crusaderky suggested this previously but I rejected it as ugly: ``` <xarray.Dataset> Dimensions: (*x: 2, y: 2) Coordinates:

  • x (x) int64 1 2 Data variables: foo (x, y) int64 1 2 3 4 ```

  • Use another marker character in Dimensions, maybe ' after dimension names for dimensions with indexes? ``` <xarray.Dataset> Dimensions: (x': 2, y: 2) Coordinates:

  • x (x) int64 1 2 Data variables: foo (x, y) int64 1 2 3 4 ```
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  200125945
Powered by Datasette · Queries took 0.616ms · About: xarray-datasette