home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 43282058

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/131#issuecomment-43282058 https://api.github.com/repos/pydata/xarray/issues/131 43282058 MDEyOklzc3VlQ29tbWVudDQzMjgyMDU4 1217238 2014-05-16T00:29:26Z 2014-05-16T01:46:59Z MEMBER

Thanks for raising this as a separate issue. Yes, I agree it would be nice to add these summary methods! We can imagine DataArray methods on Datasets mapping over all variables in a somewhat similar way to how groupby methods map over each group.

These methods are very convenient for pandas.DataFrame objects, so it makes sense to have them for xray.Dataset, too.

The only unfortunate aspect that is that it is harder to see the values in a Dataset, because they aren't given in the standard string representation. In contrast, methods like DataFrame.describe() (or even just DataFrame.mean() are more convenient because they give you another DataFrame back, which shows all the relevant values. I'm not sure if the solution is come up with a better Dataset representation which shows more numbers, or to just encourage the use of to_dataframe().

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