home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 33463636

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
33463636 MDExOlB1bGxSZXF1ZXN0MTU4NjIwNDQ= 128 Expose more information in DataArray.__repr__ 1217238 closed 0   650893 0 2014-05-14T06:05:53Z 2014-08-01T05:54:50Z 2014-05-29T04:19:46Z MEMBER   0 pydata/xarray/pulls/128

This PR changes the DataArray representation so that it displays more of the information associated with a data array: - "Coordinates" are indicated by their name and the repr of the corresponding pandas.Index object (to indicate how they are used as indices). - "Linked" dataset variables are also listed. - These are other variables in the dataset associated with a DataArray which are also indexed along with the DataArray. - They accessible from the dataset attribute or by indexing the data array with a string. - Perhaps their most convenient aspect is that they enable groupby operations by name for DataArray objets. - This is an admitedly somewhat confusing (though convenient) notion that I am considering removing, but we if we don't remove them we should certainly expose their existence more clearly, given the potential benefits in expressiveness and costs in performance.

Questions to resolve: - Is "Linked dataset variables" the best name for these? - Perhaps it would be useful to show more information about these linked variables, such as their dimensions and/or shape?

Examples of the new repr are on nbviewer: http://nbviewer.ipython.org/gist/shoyer/94936e5b71613683d95a

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/128/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 1 row from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 0.706ms · About: xarray-datasette