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/699#issuecomment-168565401,https://api.github.com/repos/pydata/xarray/issues/699,168565401,MDEyOklzc3VlQ29tbWVudDE2ODU2NTQwMQ==,953992,2016-01-04T02:05:33Z,2016-01-04T02:05:33Z,MEMBER,"ok, closing.
also FYI, these seem reasonable as a default.
```
In [9]: p = tm.makePanel()
In [10]: p
Out[10]:
Dimensions: 3 (items) x 30 (major_axis) x 4 (minor_axis)
Items axis: ItemA to ItemC
Major_axis axis: 2000-01-03 00:00:00 to 2000-02-11 00:00:00
Minor_axis axis: A to D
In [11]: p.to_xray()
Out[11]:
Dimensions: (items: 3, major_axis: 30, minor_axis: 4)
Coordinates:
* items (items) object 'ItemA' 'ItemB' 'ItemC'
* major_axis (major_axis) datetime64[ns] 2000-01-03 2000-01-04 2000-01-05 ...
* minor_axis (minor_axis) object 'A' 'B' 'C' 'D'
Data variables:
None (items, major_axis, minor_axis) float64 -0.5374 0.5918 ...
In [12]: p = tm.makePanel4D()
In [13]: p
Out[13]:
Dimensions: 3 (labels) x 3 (items) x 30 (major_axis) x 4 (minor_axis)
Labels axis: l1 to l3
Items axis: ItemA to ItemC
Major_axis axis: 2000-01-03 00:00:00 to 2000-02-11 00:00:00
Minor_axis axis: A to D
In [14]: p.to_xray()
Out[14]:
Dimensions: (items: 3, labels: 3, major_axis: 30, minor_axis: 4)
Coordinates:
* labels (labels) object 'l1' 'l2' 'l3'
* items (items) object 'ItemA' 'ItemB' 'ItemC'
* major_axis (major_axis) datetime64[ns] 2000-01-03 2000-01-04 2000-01-05 ...
* minor_axis (minor_axis) object 'A' 'B' 'C' 'D'
Data variables:
None (labels, items, major_axis, minor_axis) float64 -0.5523 ...
```
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,124664101
https://github.com/pydata/xarray/issues/699#issuecomment-168563184,https://api.github.com/repos/pydata/xarray/issues/699,168563184,MDEyOklzc3VlQ29tbWVudDE2ODU2MzE4NA==,953992,2016-01-04T01:33:31Z,2016-01-04T01:33:31Z,MEMBER,"ahh I c, so this is actually a 1-dim (len of 3), ok.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,124664101
https://github.com/pydata/xarray/issues/699#issuecomment-168563021,https://api.github.com/repos/pydata/xarray/issues/699,168563021,MDEyOklzc3VlQ29tbWVudDE2ODU2MzAyMQ==,1217238,2016-01-04T01:30:35Z,2016-01-04T01:30:35Z,MEMBER,"In [24], the result has one dimension, `foo`, which has length 3. We do lose `bar`, but that's just the name of the columns. There simply isn't any logical place for that metadata on an xray `Dataset`.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,124664101
https://github.com/pydata/xarray/issues/699#issuecomment-168549489,https://api.github.com/repos/pydata/xarray/issues/699,168549489,MDEyOklzc3VlQ29tbWVudDE2ODU0OTQ4OQ==,5635139,2016-01-03T22:53:17Z,2016-01-03T22:53:17Z,MEMBER,"When converted to a `Dataset` each of the `DataFrame`'s series becomes a `DataArray`, and is aligned on the only dim, in this case, 'foo'. We do lose the name of the columns (but that's all - do you think we're losing more than than?)
@shoyer will have a better view as to whether `to_xray()` should return a `DataArray` or `Dataset`. I think a `Dataset` would be cleaner, although we're going to have to `glom` together types anyway if it's a Panel, and users may be expecting an array-like object.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,124664101