issue_comments
20 rows where author_association = "MEMBER" and issue = 143264649 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- Multi-index indexing · 20 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
233596724 | https://github.com/pydata/xarray/pull/802#issuecomment-233596724 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIzMzU5NjcyNA== | benbovy 4160723 | 2016-07-19T10:48:56Z | 2016-07-19T10:48:56Z | MEMBER | Thanks again @shoyer for your reviews and comments! Merging this PR broke the tests added in #881. I fixed that in #903. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
233504589 | https://github.com/pydata/xarray/pull/802#issuecomment-233504589 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIzMzUwNDU4OQ== | shoyer 1217238 | 2016-07-19T01:15:34Z | 2016-07-19T01:15:34Z | MEMBER | @tippetts Thanks for checking in. I actually hadn't noticed the last round of changes here, but I think this is good to go in now! Big thanks to @benbovy!!! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
225330535 | https://github.com/pydata/xarray/pull/802#issuecomment-225330535 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyNTMzMDUzNQ== | shoyer 1217238 | 2016-06-11T01:57:10Z | 2016-06-11T01:57:10Z | MEMBER | I did a little bit of testing. Here is one case I found where things don't work as I expected: ``` In [32]: idx = pd.MultiIndex.from_product([['a', 'b'], [0, 1, 2]], names=['lev0', 'lev1']) In [33]: data = xr.DataArray(range(6), [('x', idx)]) In [34]: data.sel(x=('a',)) Out[34]: <xarray.DataArray (lev1: 3)> array([0, 1, 2]) Coordinates: * lev1 (lev1) int64 0 1 2 In [35]: data.sel(x='a') Out[35]: <xarray.DataArray (x: 3)> array([0, 1, 2]) Coordinates: * x (x) object ('a', 0) ('a', 1) ('a', 2) ``` I would expect an index drop in the last case, too. I guess we need to check for scalars. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
225236223 | https://github.com/pydata/xarray/pull/802#issuecomment-225236223 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyNTIzNjIyMw== | benbovy 4160723 | 2016-06-10T16:52:44Z | 2016-06-10T16:52:44Z | MEMBER | Thanks for your second review @shoyer ! It actually helped me to better understand the indexing logic of pandas (never too late)! I made some updates according to your comments. I think we're getting closer to a working feature! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
224347054 | https://github.com/pydata/xarray/pull/802#issuecomment-224347054 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyNDM0NzA1NA== | shoyer 1217238 | 2016-06-07T17:05:11Z | 2016-06-07T17:05:11Z | MEMBER | Just went through and gave another full review -- this is looking quite nice, just a few more things to clean up! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
224327201 | https://github.com/pydata/xarray/pull/802#issuecomment-224327201 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyNDMyNzIwMQ== | benbovy 4160723 | 2016-06-07T15:58:49Z | 2016-06-07T15:58:49Z | MEMBER | Noted the difference in documentation. Hope that the whole "multi-level indexing" section is clear enough, not sure if it's proper English. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
224106148 | https://github.com/pydata/xarray/pull/802#issuecomment-224106148 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyNDEwNjE0OA== | shoyer 1217238 | 2016-06-06T22:18:28Z | 2016-06-06T22:18:28Z | MEMBER | I don't think we need to handle it -- I'm definitely supportive of only supporting unambiguous syntax. Let's just note the difference from pandas. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
224104390 | https://github.com/pydata/xarray/pull/802#issuecomment-224104390 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyNDEwNDM5MA== | benbovy 4160723 | 2016-06-06T22:11:09Z | 2016-06-06T22:11:09Z | MEMBER | That behavior looks good enough to me too! It is indeed already quite flexible :-). Do you think that we really need to handle |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
224093911 | https://github.com/pydata/xarray/pull/802#issuecomment-224093911 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyNDA5MzkxMQ== | shoyer 1217238 | 2016-06-06T21:27:59Z | 2016-06-06T21:27:59Z | MEMBER | Yeah, that behavior looks pretty good to me -- there are limits on how flexible you can make things :). We are fortunate that we have |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
224092354 | https://github.com/pydata/xarray/pull/802#issuecomment-224092354 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyNDA5MjM1NA== | benbovy 4160723 | 2016-06-06T21:21:29Z | 2016-06-06T21:21:29Z | MEMBER | ```
Example using a tuple of scalar/tuple/list/slice labels for each level: ```
Example using a list of several combinations of multi-index labels: ```
All the following examples raise an error: ```
Note that after verification, pandas has the same behavior for all of the examples shown here. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
224047760 | https://github.com/pydata/xarray/pull/802#issuecomment-224047760 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyNDA0Nzc2MA== | shoyer 1217238 | 2016-06-06T18:35:27Z | 2016-06-06T18:35:27Z | MEMBER |
Can you give a quick example of what using the nested list look like? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
223921363 | https://github.com/pydata/xarray/pull/802#issuecomment-223921363 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyMzkyMTM2Mw== | benbovy 4160723 | 2016-06-06T10:22:49Z | 2016-06-06T10:22:49Z | MEMBER | Thanks for the review @shoyer ! I made some updates according to your comments. A possible remaining issue is that using a tuple of tuples, lists or slices exactly behaves like pandas (it calls |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
222544618 | https://github.com/pydata/xarray/pull/802#issuecomment-222544618 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIyMjU0NDYxOA== | benbovy 4160723 | 2016-05-30T19:30:03Z | 2016-05-30T19:30:03Z | MEMBER | I finally managed to add some tests and docs. Two more comments:
- Index replacement: if the multi-index has unnamed levels, the chosen name for the replaced index (if any) is @shoyer I think that it is ready for review. I successfully run the tests on my local branch. Currently, CI tests seem broken for some reason I don't know. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
206445614 | https://github.com/pydata/xarray/pull/802#issuecomment-206445614 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIwNjQ0NTYxNA== | benbovy 4160723 | 2016-04-06T16:12:44Z | 2016-04-06T16:12:44Z | MEMBER | I hope to have some time next week to work again on this PR. @tippetts You can see in #719 a few comments about saving/reading xarray data objects with multi-index to/from netCDF. I also looking forward to see this feature implemented - actually I need it for another project that uses xarray - so maybe I'll find some time in the next couple of weeks to start a new PR on this. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
201389147 | https://github.com/pydata/xarray/pull/802#issuecomment-201389147 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIwMTM4OTE0Nw== | benbovy 4160723 | 2016-03-25T17:56:51Z | 2016-03-25T17:56:51Z | MEMBER | Unless you see any other issues, I think that this feature doesn't need more development for now. I'll be back next week to finish this PR (write some tests and doc). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
201378550 | https://github.com/pydata/xarray/pull/802#issuecomment-201378550 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIwMTM3ODU1MA== | shoyer 1217238 | 2016-03-25T17:30:33Z | 2016-03-25T17:30:33Z | MEMBER | Dictionaries not hashable, so we might be able to detect this case by calling hash() and raising a KeyError with alternative suggestions. Just an idea -- not sure if there's a clean way to implement that. On Fri, Mar 25, 2016 at 10:10 AM, Benoit Bovy notifications@github.com wrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
201370448 | https://github.com/pydata/xarray/pull/802#issuecomment-201370448 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIwMTM3MDQ0OA== | benbovy 4160723 | 2016-03-25T17:10:40Z | 2016-03-25T17:10:40Z | MEMBER | After refactoring a bit,
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
201340940 | https://github.com/pydata/xarray/pull/802#issuecomment-201340940 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIwMTM0MDk0MA== | shoyer 1217238 | 2016-03-25T15:51:02Z | 2016-03-25T15:51:02Z | MEMBER |
Indeed. This would require an another data structure somewhere keeping track of level names -- and ideally also ensuring that they are always unique (like dimensions). This seems fine to me for now.
I agree -- better to require the user to be explicit. I also don't see many use cases for specifying the coordinate value and level name but not the dimension name. What happens if you type |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
201302454 | https://github.com/pydata/xarray/pull/802#issuecomment-201302454 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIwMTMwMjQ1NA== | benbovy 4160723 | 2016-03-25T14:17:29Z | 2016-03-25T14:17:29Z | MEMBER | I followed your suggestions. Two more comments (not critical issues I think) :
- Multi-index level drop only works when a dict is provided for a dimension, i.e., In summary, |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 | |
201125233 | https://github.com/pydata/xarray/pull/802#issuecomment-201125233 | https://api.github.com/repos/pydata/xarray/issues/802 | MDEyOklzc3VlQ29tbWVudDIwMTEyNTIzMw== | shoyer 1217238 | 2016-03-25T03:53:53Z | 2016-03-25T03:53:53Z | MEMBER | This looks very nice! I would probably opt for making |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index indexing 143264649 |
Advanced export
JSON shape: default, array, newline-delimited, object
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]);
user 2