home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 333022698

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/pull/1597#issuecomment-333022698 https://api.github.com/repos/pydata/xarray/issues/1597 333022698 MDEyOklzc3VlQ29tbWVudDMzMzAyMjY5OA== 1386642 2017-09-29T03:33:34Z 2017-09-29T03:34:02Z CONTRIBUTOR

Thanks! Yah...I'm not very good at naming things. I think Dataset.to_stacked_array makes sense, but I would typically expect something like from_stacked_array to be a static method of Dataset (e.g. pd.MultiIndex.from_tuples). We could always move unstack_cat to Dataset, but then we miss out on the ability to make sequential method calls.

IMO the behavior of unstack_cat is kind of what I would expect DataArray.to_dataset to do in the case where dim is a stacked coordinate, so maybe we could put it in there.

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