-
yields Since it's labeled SortedKeysDict, I expected the same ordering as shown, but when I call I get: which is different from the provided, transposed order If I subset a DataArray, it's correct: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
sorry for the late reply, @ahuang11. To me the the name The difficulty with In order to completely avoid that somewhat complex decision, the |
Beta Was this translation helpful? Give feedback.
sorry for the late reply, @ahuang11.
To me the the name
SortedKeysDict
implies that it is sorted, not ordered (the difference being that – similar to aOrderedDict
– "ordered" follows the order of insertion while "sorted" is sorted somehow, in this case alphabetically).The difficulty with
Dataset
dimensions is that the order has no actual meaning: consider aDataset
with three variables, one with the dimensions("x", "y")
, the second("x", "t")
and the other("z", "t")
. Which order should we use for those?In order to completely avoid that somewhat complex decision, the
Dataset
dimensions are always sorted alphabetically, while forDataArray
(or the semi-internalVariable
) the order does…