home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 630114341

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/4072#issuecomment-630114341 https://api.github.com/repos/pydata/xarray/issues/4072 630114341 MDEyOklzc3VlQ29tbWVudDYzMDExNDM0MQ== 14808389 2020-05-18T11:16:02Z 2020-05-18T11:16:02Z MEMBER

don't use the Coordinates section to check the order. Dataset objects may have multiple data variables (each with a possibly different order of dimensions) so for displaying it needs to define some kind of order.

What you want to compare is the order of dimensions referenced by a variable: <xarray.Dataset> Dimensions: (time: 1, x: 10, y: 10) Coordinates: * time (time) int64 0 * y (y) int64 0 1 2 3 4 5 6 7 8 9 * x (x) int64 0 1 2 3 4 5 6 7 8 9 Data variables: data (time, y, x) bool False False False False ... False False False ^^^^^^^^^^^^ and you will notice that the order does not change.

To make this less confusing, maybe we should always sort the coordinates when displaying them? I'm guessing that right now they are displayed in the order they were added to the coordinates.

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