home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 43291229

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-43291229 https://api.github.com/repos/pydata/xarray/issues/131 43291229 MDEyOklzc3VlQ29tbWVudDQzMjkxMjI5 2443309 2014-05-16T03:06:41Z 2014-05-16T03:07:16Z MEMBER

I'm not sure we need to worry about the string representation too much. The pandas.Panel has a limited string representation too - example. Then again, I find the pandas pannels difficult to work with. Maybe adding a thorough Dataset.describe() method would suffice.

To flush out some of the desired functionality a bit more: (I'm going to use numpy.mean as an example but any numpy reduction function could be applied) 1. Dataset.mean() returns a new Dataset, with all the variables and attributes from the original Dataset reduced along all dimensions. 2. Dataset.mean(dim='some_dim_name') returns a new Dataset, with all the variables and attributes from the original Dataset reduced along the sum_dim_name dimension. 3. Dataset.mean(dim=['Y', 'X']) returns a new Dataset, with all the variables from the original Dataset reduced along the Y and X dimensions. 4. What to do with the reduced dimensions/variables? Reduced variables (e.g. when the mean is taken along the time dimension) could be a) reduced in the same manner (e.g. leave the time variable in the Dataset and just take the mean of the time array), b) removed, thereby reducing the Dataset's dimensions. I think the cleanest way would be to remove the reduced dimensions/variables (b). 5. Any implementation should play nice with the Dataset.groupby objects (#122).

{
    "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.449ms · About: xarray-datasette