home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

46 rows where issue = 261131958 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 7

  • nbren12 28
  • shoyer 8
  • jhamman 6
  • dcherian 1
  • stickler-ci 1
  • codecov[bot] 1
  • pep8speaks 1

author_association 3

  • CONTRIBUTOR 29
  • MEMBER 15
  • NONE 2

issue 1

  • Add methods for combining variables of differing dimensionality · 46 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
508802893 https://github.com/pydata/xarray/pull/1597#issuecomment-508802893 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwODgwMjg5Mw== nbren12 1386642 2019-07-05T15:59:51Z 2019-07-05T15:59:51Z CONTRIBUTOR

Thanks Joe!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
508802305 https://github.com/pydata/xarray/pull/1597#issuecomment-508802305 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwODgwMjMwNQ== jhamman 2443309 2019-07-05T15:57:31Z 2019-07-05T15:57:31Z MEMBER

Kudos to @nbren12 for sticking with this one! Looking forward to seeing this one in the wild.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
508598650 https://github.com/pydata/xarray/pull/1597#issuecomment-508598650 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwODU5ODY1MA== nbren12 1386642 2019-07-05T01:07:21Z 2019-07-05T01:07:21Z CONTRIBUTOR

phew! Thanks for all the reviews and discussion everyone!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
508595343 https://github.com/pydata/xarray/pull/1597#issuecomment-508595343 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwODU5NTM0Mw== shoyer 1217238 2019-07-05T00:33:07Z 2019-07-05T00:33:07Z MEMBER

Thanks @nbren12!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
508593312 https://github.com/pydata/xarray/pull/1597#issuecomment-508593312 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwODU5MzMxMg== nbren12 1386642 2019-07-05T00:09:43Z 2019-07-05T00:09:43Z CONTRIBUTOR

It looks like the CI errors above aren’t related to this PR. There seems to be an issue with to_pandas.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
478700651 https://github.com/pydata/xarray/pull/1597#issuecomment-478700651 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ3ODcwMDY1MQ== pep8speaks 24736507 2019-04-01T18:53:03Z 2019-07-04T20:50:21Z NONE

Hello @nbren12! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2019-07-04 20:50:20 UTC
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
507510660 https://github.com/pydata/xarray/pull/1597#issuecomment-507510660 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwNzUxMDY2MA== codecov[bot] 22429695 2019-07-02T04:12:24Z 2019-07-04T20:50:06Z NONE

Codecov Report

Merging #1597 into master will increase coverage by 0.02%. The diff coverage is 97.22%.

```diff @@ Coverage Diff @@

master #1597 +/-

========================================== + Coverage 94.8% 94.83% +0.02%
========================================== Files 67 67
Lines 12876 12912 +36
========================================== + Hits 12207 12245 +38
+ Misses 669 667 -2 ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
507895012 https://github.com/pydata/xarray/pull/1597#issuecomment-507895012 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwNzg5NTAxMg== shoyer 1217238 2019-07-03T00:45:55Z 2019-07-03T00:45:55Z MEMBER

OK, I plan to merge this shortly unless there are any objections :)

{
    "total_count": 3,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 3,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
507822750 https://github.com/pydata/xarray/pull/1597#issuecomment-507822750 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwNzgyMjc1MA== nbren12 1386642 2019-07-02T19:57:59Z 2019-07-02T19:57:59Z CONTRIBUTOR

drat. Should be fixed now.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
507791978 https://github.com/pydata/xarray/pull/1597#issuecomment-507791978 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwNzc5MTk3OA== shoyer 1217238 2019-07-02T18:23:17Z 2019-07-02T18:23:17Z MEMBER

you have a lint error: https://github.com/pydata/xarray/pull/1597#issuecomment-478700651

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
507512420 https://github.com/pydata/xarray/pull/1597#issuecomment-507512420 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwNzUxMjQyMA== nbren12 1386642 2019-07-02T04:23:10Z 2019-07-02T04:23:10Z CONTRIBUTOR

Okay. I responded to @benbovy's last comments and merged the upstream changes to master. How is this looking?

cc @jhamman

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
505533500 https://github.com/pydata/xarray/pull/1597#issuecomment-505533500 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwNTUzMzUwMA== nbren12 1386642 2019-06-25T17:01:52Z 2019-06-25T17:01:52Z CONTRIBUTOR

is there actual use cases where it is useful to provide multiple dimensions for sample_dims?

Yes! My main use-case does. For example, if you have a weather dataset where every lat/lon pair should be considered a separate "sample", you would use sample_dims=['lat', 'lon'].

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
504623974 https://github.com/pydata/xarray/pull/1597#issuecomment-504623974 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwNDYyMzk3NA== nbren12 1386642 2019-06-22T03:37:35Z 2019-06-22T03:37:35Z CONTRIBUTOR

It looks like the tests passed. @benbovy How does it look now? Did I fix the issues you mentioned?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
504621993 https://github.com/pydata/xarray/pull/1597#issuecomment-504621993 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDUwNDYyMTk5Mw== nbren12 1386642 2019-06-22T03:12:00Z 2019-06-22T03:12:00Z CONTRIBUTOR

It looks like 43834ac8186a851b7 might have fixed this. Let's see if the tests pass.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
499915652 https://github.com/pydata/xarray/pull/1597#issuecomment-499915652 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ5OTkxNTY1Mg== nbren12 1386642 2019-06-07T14:51:46Z 2019-06-07T14:54:25Z CONTRIBUTOR

Does anybody have an idea why the py36-dask-dev tests are failing? None of the errors seems related to this PR.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
499789587 https://github.com/pydata/xarray/pull/1597#issuecomment-499789587 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ5OTc4OTU4Nw== nbren12 1386642 2019-06-07T07:40:38Z 2019-06-07T07:40:38Z CONTRIBUTOR

@benbovy Paradoxically I think making to_stacked_array accept the list of dimensions which won't be stacked is clearer. These unstacked dims needed to shared across all variables, which is a very simple requirement. I realized this after writing a bunch of error-prone validation code. See my last commit for more of my reasoning (5ca9a1d868a). I also updated the docs and tests accordingly.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
499761734 https://github.com/pydata/xarray/pull/1597#issuecomment-499761734 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ5OTc2MTczNA== nbren12 1386642 2019-06-07T05:28:51Z 2019-06-07T05:28:51Z CONTRIBUTOR

@benbovy

Is it expected behavior? I guess that not every combination is possible because we're not broadcasting here unlike to_array().

I believe so. In your third case, to_stacked_array basically wants to combine a and b into a DataArray with a dimension y. But that is not possible without broadcasting because b does not have a dimension y. I will try to add a more informative error message.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
494893796 https://github.com/pydata/xarray/pull/1597#issuecomment-494893796 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ5NDg5Mzc5Ng== nbren12 1386642 2019-05-22T17:21:24Z 2019-05-22T17:21:24Z CONTRIBUTOR

Thanks for your review @benbovy. I'll try to take a look soon.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
494470057 https://github.com/pydata/xarray/pull/1597#issuecomment-494470057 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ5NDQ3MDA1Nw== dcherian 2448579 2019-05-21T16:47:30Z 2019-05-21T16:47:30Z MEMBER

docs & tests LGTM. I don't understand stacking/unstacking/multiindexes too well...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
494240726 https://github.com/pydata/xarray/pull/1597#issuecomment-494240726 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ5NDI0MDcyNg== jhamman 2443309 2019-05-21T05:04:24Z 2019-05-21T05:04:24Z MEMBER

@pydata/xarray - would love to get some more eyes on this PR. Its been lingering but @nbren12 seems to have addressed all prior comments.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
493249598 https://github.com/pydata/xarray/pull/1597#issuecomment-493249598 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ5MzI0OTU5OA== nbren12 1386642 2019-05-16T22:11:55Z 2019-05-16T22:11:55Z CONTRIBUTOR

Hey @rabernat. Did I resolve your comments?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
482645695 https://github.com/pydata/xarray/pull/1597#issuecomment-482645695 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ4MjY0NTY5NQ== jhamman 2443309 2019-04-12T16:51:30Z 2019-04-12T16:51:30Z MEMBER

@rabernat - you had asked for some changes in the early days of this PR. Are you satisfied with the current state here?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
482640504 https://github.com/pydata/xarray/pull/1597#issuecomment-482640504 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ4MjY0MDUwNA== nbren12 1386642 2019-04-12T16:35:17Z 2019-04-12T16:35:17Z CONTRIBUTOR

Hey. I just wanted to bump this PR. How does it look @rabernat @jhamman @shoyer?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
479128919 https://github.com/pydata/xarray/pull/1597#issuecomment-479128919 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ3OTEyODkxOQ== nbren12 1386642 2019-04-02T18:15:10Z 2019-04-02T18:15:10Z CONTRIBUTOR

Ok. I added an example which is very similar to the DataArray.unstack example.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
478794367 https://github.com/pydata/xarray/pull/1597#issuecomment-478794367 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ3ODc5NDM2Nw== nbren12 1386642 2019-04-02T00:20:24Z 2019-04-02T00:20:24Z CONTRIBUTOR

Okay. It looks like it is passing CI now, so I think it's ready for another look. How does it look? Are you still interested in including this functionality?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
478749910 https://github.com/pydata/xarray/pull/1597#issuecomment-478749910 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ3ODc0OTkxMA== shoyer 1217238 2019-04-01T21:12:09Z 2019-04-01T21:12:09Z MEMBER

No worries, rebase is fine too :)

On Mon, Apr 1, 2019 at 2:09 PM Noah D Brenowitz notifications@github.com wrote:

@shoyer https://github.com/shoyer Sorry. I rebased...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/pull/1597#issuecomment-478748969, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKS1g66J1a8H0wf1DzYQkEfqqIGGuc2ks5vcnWMgaJpZM4PmdUM .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
478748969 https://github.com/pydata/xarray/pull/1597#issuecomment-478748969 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ3ODc0ODk2OQ== nbren12 1386642 2019-04-01T21:09:31Z 2019-04-01T21:09:31Z CONTRIBUTOR

@shoyer Sorry. I rebased...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
478730862 https://github.com/pydata/xarray/pull/1597#issuecomment-478730862 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ3ODczMDg2Mg== shoyer 1217238 2019-04-01T20:17:33Z 2019-04-01T20:17:33Z MEMBER

@jhamman I did a little more work on this today. How do you recommend I update this to master? rebase?

We should add a section to our contributor guide on this, but the recommended workflow is just to use git merge.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
478702680 https://github.com/pydata/xarray/pull/1597#issuecomment-478702680 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ3ODcwMjY4MA== nbren12 1386642 2019-04-01T18:58:18Z 2019-04-01T18:58:18Z CONTRIBUTOR

@jhamman I did a little more work on this today. How do you recommend I update this to master? rebase?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
445483774 https://github.com/pydata/xarray/pull/1597#issuecomment-445483774 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ0NTQ4Mzc3NA== nbren12 1386642 2018-12-08T19:28:40Z 2018-12-08T19:28:40Z CONTRIBUTOR

I'd be happy to pick this up again if you think it will go through.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
445291957 https://github.com/pydata/xarray/pull/1597#issuecomment-445291957 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDQ0NTI5MTk1Nw== jhamman 2443309 2018-12-07T16:44:54Z 2018-12-07T16:44:54Z MEMBER

@nbren12 - can we revive this? There or some conflicts but I think this was pretty close to done.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
366548976 https://github.com/pydata/xarray/pull/1597#issuecomment-366548976 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDM2NjU0ODk3Ng== nbren12 1386642 2018-02-18T21:24:28Z 2018-02-18T21:24:28Z CONTRIBUTOR

Sorry for random activity. I accidentally hard reset the master branch nbren12/xarray to pydata/xarray.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
366547666 https://github.com/pydata/xarray/pull/1597#issuecomment-366547666 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDM2NjU0NzY2Ng== stickler-ci 16011037 2018-02-18T21:06:10Z 2018-02-18T21:06:10Z CONTRIBUTOR

Could not review pull request. It may be too large, or contain no reviewable changes.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
343718802 https://github.com/pydata/xarray/pull/1597#issuecomment-343718802 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDM0MzcxODgwMg== shoyer 1217238 2017-11-12T07:29:22Z 2017-11-12T07:29:22Z MEMBER

@nbren12 OK, sounds good to me. Yes, it's a good idea to put more speculative stuff in other packages. I will take a look at your actual implementation.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
343643422 https://github.com/pydata/xarray/pull/1597#issuecomment-343643422 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDM0MzY0MzQyMg== nbren12 1386642 2017-11-11T06:01:52Z 2017-11-11T06:02:12Z CONTRIBUTOR

@shoyer If you are okay with it, I think we might want to leave that to a later date if ever. I am not exactly sure what a useful API for that would be ATM. On the other hand, I have been using the original stack_cat and unstack_cat functions for a couple of months, and they have handled my basic uses pretty well.

For more complicated uses (e.g. taking different subsets of each variable and concatenating the output), I have started working on a project which is similar to sklearn-pandas. Since there are a million ways several xarray variables could be processed/subsetted, stacked and then concatenated, I think this functionality should probably remain in a third party package for now.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
343626563 https://github.com/pydata/xarray/pull/1597#issuecomment-343626563 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDM0MzYyNjU2Mw== shoyer 1217238 2017-11-11T01:04:03Z 2017-11-11T01:04:03Z MEMBER

@nbren12 in the linked issue (https://github.com/pydata/xarray/issues/1317#issuecomment-337796691) you wrote:

After using my own version of this code for the past month or so, it has occurred to me that this API probably will not support stacking arrays of with different sizes along shared arrays. For instance, I need to "stack" humidity below an altitude of 10km with temperature between 0 and 16 km. IMO, the easiest way to do this would be to change these methods into top-level functions which can take any dict or iterable of datarrays. We could leave that for a later PR of course.

Is this something that would make sense to resolve before we merge this?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
343312698 https://github.com/pydata/xarray/pull/1597#issuecomment-343312698 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDM0MzMxMjY5OA== nbren12 1386642 2017-11-09T22:28:22Z 2017-11-09T22:28:22Z CONTRIBUTOR

Okay. I think I'm done with the updates to the documentation.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
342665601 https://github.com/pydata/xarray/pull/1597#issuecomment-342665601 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDM0MjY2NTYwMQ== nbren12 1386642 2017-11-08T00:04:57Z 2017-11-08T00:04:57Z CONTRIBUTOR

I just added some docs, but need to add to whats-new still,

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
338303735 https://github.com/pydata/xarray/pull/1597#issuecomment-338303735 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDMzODMwMzczNQ== jhamman 2443309 2017-10-20T19:40:12Z 2017-10-20T19:40:47Z MEMBER

@nbren12 - can you add these methods to api.rst and add a note to whats-new (in addition to adding some docs to the reshaping page)?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
333337845 https://github.com/pydata/xarray/pull/1597#issuecomment-333337845 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDMzMzMzNzg0NQ== nbren12 1386642 2017-09-30T21:41:58Z 2017-09-30T21:41:58Z CONTRIBUTOR

@rabernat Your point is well taken. I will add some docs/motivation to the reshaping page.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
333275551 https://github.com/pydata/xarray/pull/1597#issuecomment-333275551 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDMzMzI3NTU1MQ== nbren12 1386642 2017-09-30T02:20:41Z 2017-09-30T02:21:14Z CONTRIBUTOR

Okay. I just changed the names of the methods and wrote a test case for the problem with the dtype of the stacked dimensions not being preserved by to_stacked_array.

At the moment, I am filling in the missing dimensions with None, so the resulting index has dtype object'. This is then concatenated with the bona fide indices of the variables which are not missing this index, so the index as a whole is cast to the lowest common denominator, which is object. Unfortunately we can't just put Nan in because, NaN is a floating point number thing, so I don't think all numpy dtypes have the equivalent of NaN. @shoyer Do you have any thoughts about how to resolve this?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
333271025 https://github.com/pydata/xarray/pull/1597#issuecomment-333271025 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDMzMzI3MTAyNQ== nbren12 1386642 2017-09-30T01:06:09Z 2017-09-30T01:06:09Z CONTRIBUTOR

That naming sounds good to me.

Also, I was having an issue with unstack_cat returning an index with dtype object that I would like to sort out.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
333254137 https://github.com/pydata/xarray/pull/1597#issuecomment-333254137 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDMzMzI1NDEzNw== shoyer 1217238 2017-09-29T22:31:03Z 2017-09-29T22:31:03Z MEMBER

If we have a separate method for to_stacked_array(), we should have a separate method for unstacking, too.

I like DataArray.to_unstacked_dataset() as the complement to Dataset.to_stacked_array(). I agree that it should be a DataArray method for chain-ability.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
333023152 https://github.com/pydata/xarray/pull/1597#issuecomment-333023152 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDMzMzAyMzE1Mg== nbren12 1386642 2017-09-29T03:38:07Z 2017-09-29T03:38:07Z CONTRIBUTOR

Or maybe DataArray.to_dataset_unstacked is good.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958
333022698 https://github.com/pydata/xarray/pull/1597#issuecomment-333022698 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDMzMzAyMjY5OA== nbren12 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
}
  Add methods for combining variables of differing dimensionality 261131958
332950910 https://github.com/pydata/xarray/pull/1597#issuecomment-332950910 https://api.github.com/repos/pydata/xarray/issues/1597 MDEyOklzc3VlQ29tbWVudDMzMjk1MDkxMA== jhamman 2443309 2017-09-28T20:13:50Z 2017-09-28T20:13:50Z MEMBER

I want to let @shoyer and @rabernat weigh in on the API here.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add methods for combining variables of differing dimensionality 261131958

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 21.495ms · About: xarray-datasette