issue_comments: 420445485
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/2410#issuecomment-420445485 | https://api.github.com/repos/pydata/xarray/issues/2410 | 420445485 | MDEyOklzc3VlQ29tbWVudDQyMDQ0NTQ4NQ== | 1217238 | 2018-09-11T22:19:41Z | 2018-09-11T22:19:41Z | MEMBER | Copying @horta's doc: Xarray definitionA data array Each data array dimension has an unique A data array can have zero or more coordinates, represented by a dict-like A coordinate can have zero or more dimensions associated with. A dimension data array is a unidimensional coordinate data array associated with one, and only one, dimension having the same name as the coordinate data array itself. A dimension data array has always one, and only one, coordinate. That coordinate has again a dimension data array associated with. As an example, let Now lets consider a practical example: ```python
Data array ```python
IndexingIndexing is a operation that when applied to a data array will produce a new data array according the rules explained here. The most general form of indexing is the one that involves data arrays
The following code snippet shows an indexing example of a data array ```python
As hinted above, xarray allows the use of multidimensional data array indexers for greater flexibility. Lets look at another exampe: ```python
The resulting data array have the same dimensions as the indexer, not as the original data array. Notice also that the resulting data array has no dimension data array as opposed to the previous example. Instead, it has a bi-dimensional coordinate data array: ```python
|
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
359240638 |