issue_comments
17 rows where issue = 169588316 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- Multi-index levels as coordinates · 17 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
246896876 | https://github.com/pydata/xarray/pull/947#issuecomment-246896876 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDI0Njg5Njg3Ng== | shoyer 1217238 | 2016-09-14T03:35:04Z | 2016-09-14T03:35:04Z | MEMBER | OK, in it goes. 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 levels as coordinates 169588316 | |
246678848 | https://github.com/pydata/xarray/pull/947#issuecomment-246678848 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDI0NjY3ODg0OA== | benbovy 4160723 | 2016-09-13T13:21:53Z | 2016-09-13T13:21:53Z | MEMBER |
Just removed it. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
246560708 | https://github.com/pydata/xarray/pull/947#issuecomment-246560708 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDI0NjU2MDcwOA== | shoyer 1217238 | 2016-09-13T03:08:37Z | 2016-09-13T03:08:37Z | MEMBER | I think the main (only?) thing left to do here is to remove the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
244539699 | https://github.com/pydata/xarray/pull/947#issuecomment-244539699 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDI0NDUzOTY5OQ== | benbovy 4160723 | 2016-09-03T10:44:58Z | 2016-09-03T10:44:58Z | MEMBER | I've made changes according to your comments.
I just thought that returning a dict could be a little more convenient (i.e., using a single call) if we need to get either one particular or several or all level(s) as
Happy holidays! (I'll be on holiday next week too). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
244518196 | https://github.com/pydata/xarray/pull/947#issuecomment-244518196 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDI0NDUxODE5Ng== | shoyer 1217238 | 2016-09-03T01:14:48Z | 2016-09-03T01:14:48Z | MEMBER |
I think what BTW, I will be away over the holiday weekend (in the US), but I expect we will probably be able to merge this shortly after I get back. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
244514745 | https://github.com/pydata/xarray/pull/947#issuecomment-244514745 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDI0NDUxNDc0NQ== | benbovy 4160723 | 2016-09-03T00:21:06Z | 2016-09-03T00:21:06Z | MEMBER |
I agree that |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
244512583 | https://github.com/pydata/xarray/pull/947#issuecomment-244512583 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDI0NDUxMjU4Mw== | shoyer 1217238 | 2016-09-02T23:57:26Z | 2016-09-02T23:57:26Z | MEMBER | Rather than adding an independent |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
244507224 | https://github.com/pydata/xarray/pull/947#issuecomment-244507224 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDI0NDUwNzIyNA== | benbovy 4160723 | 2016-09-02T23:07:14Z | 2016-09-02T23:07:14Z | MEMBER | @shoyer this is ready for another round of review. I don't see any remaining issue, I added some tests and I updated the docs. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
244142205 | https://github.com/pydata/xarray/pull/947#issuecomment-244142205 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDI0NDE0MjIwNQ== | shoyer 1217238 | 2016-09-01T16:55:12Z | 2016-09-01T16:55:12Z | MEMBER |
I would usually lean towards dedicated tests (e.g., |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
244087601 | https://github.com/pydata/xarray/pull/947#issuecomment-244087601 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDI0NDA4NzYwMQ== | benbovy 4160723 | 2016-09-01T14:00:02Z | 2016-09-01T14:02:14Z | MEMBER | Not sure how to write the tests for this PR, as there are quite many small changes spread in the API (e.g., repr, data object and coordinate properties, etc.). Should I write new tests specific to multi-index or should I modify existing tests (e.g., |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
239159377 | https://github.com/pydata/xarray/pull/947#issuecomment-239159377 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDIzOTE1OTM3Nw== | benbovy 4160723 | 2016-08-11T13:23:52Z | 2016-08-11T15:33:50Z | MEMBER | I just made some updates.
Done.
Done, although it currently slices an arbitrary number (30) of first elements rather than calculating the number of elements needed for display.
Done.
I tried but it broke some existing tests. It actually triggered data loading for Coordinate objects (via calls to
Right, but in the current implementation this is still used internally.
Done. It should also work with multi-index levels although not tested yet.
I've chosen option 3A for the repr, but I can change it depending on others' opinions.
Done.
They don't appear in there. If we keep Option 3A for the repr, I also think that we can avoid changes here. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
238709101 | https://github.com/pydata/xarray/pull/947#issuecomment-238709101 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDIzODcwOTEwMQ== | shoyer 1217238 | 2016-08-09T22:14:49Z | 2016-08-09T22:14:49Z | MEMBER |
Sounds good, I will do this in a separate PR. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
238549129 | https://github.com/pydata/xarray/pull/947#issuecomment-238549129 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDIzODU0OTEyOQ== | benbovy 4160723 | 2016-08-09T13:16:50Z | 2016-08-09T13:16:50Z | MEMBER |
Agreed. I have always the tendency to want to make things as flexible as possible, but this is definitely not needed here.
I'm also +1 for Option 3A. Maybe one little argument in favor of Options 3E or 3F is that they still show a consistent repr when a scalar is returned from the multi-index (see below), even though I don't like how they would display duplicate information. ```
As a recent xarray user, I indeed remember that I initially found confusing to have Dataset or DataArray "coordinates" that can be either |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
238053642 | https://github.com/pydata/xarray/pull/947#issuecomment-238053642 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDIzODA1MzY0Mg== | shoyer 1217238 | 2016-08-06T23:07:25Z | 2016-08-06T23:07:25Z | MEMBER | I'm conflicted about how to handle the repr. On the one hand, I like how Let me try to sketch out some concrete proposals to encourage the peanut gallery to speak up: Option 1: no special indicator for the MultiIndex:
Option 2: both MultiIndex and levels in repr:
Option 3: both MultiIndex and levels in repr, different symbol for levels:
Option 4: both MultiIndex and levels in repr, different symbol for levels, with indentation:
A separate question (if we pick one of options 2-4) is how to represent the Option A: The tradeoffs here are whether or not we include the exact dtype information ( I'm currently leaning toward Option 3A, but I don't have a strong opinion. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
238053437 | https://github.com/pydata/xarray/pull/947#issuecomment-238053437 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDIzODA1MzQzNw== | shoyer 1217238 | 2016-08-06T23:00:17Z | 2016-08-06T23:02:10Z | MEMBER | I would suggest putting the logic to create new variables for levels in the private This could get us most of the way there, but there are still a few things to watch out for:
1. What happens when you write |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
238050009 | https://github.com/pydata/xarray/pull/947#issuecomment-238050009 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDIzODA1MDAwOQ== | shoyer 1217238 | 2016-08-06T21:35:24Z | 2016-08-06T21:35:24Z | MEMBER | This is very exciting to see! A few thoughts on implementation: Instead of always creating a dictionary of level coordinates, I would add an attribute It's much cheaper to call ``` In [12]: idx = pd.MultiIndex.from_product([np.linspace(0, 1, num=500), np.arange(1000)]) In [13]: %timeit idx.get_level_values(0)[:10] 1000 loops, best of 3: 1.28 ms per loop In [14]: %timeit idx[:10].get_level_values(0) 10000 loops, best of 3: 101 µs per loop ``` It's even more extreme for larger indexes. If possible, we should use something closer to this approach when formatting coordinates.
I would actually be happy to disallow both, which might be even easy. It seems like a fine rule to say that you cannot call |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 | |
237997724 | https://github.com/pydata/xarray/pull/947#issuecomment-237997724 | https://api.github.com/repos/pydata/xarray/issues/947 | MDEyOklzc3VlQ29tbWVudDIzNzk5NzcyNA== | benbovy 4160723 | 2016-08-06T01:15:02Z | 2016-08-06T01:15:02Z | MEMBER | In the example above, I wasn't happy with the initial implementation of using levels in |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Multi-index levels as coordinates 169588316 |
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