issue_comments
5 rows where issue = 357156174 and user = 514522 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- DataArray.loc fails for duplicates where DataFrame works · 5 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
420446624 | https://github.com/pydata/xarray/issues/2399#issuecomment-420446624 | https://api.github.com/repos/pydata/xarray/issues/2399 | MDEyOklzc3VlQ29tbWVudDQyMDQ0NjYyNA== | horta 514522 | 2018-09-11T22:24:14Z | 2018-09-11T22:24:14Z | CONTRIBUTOR | Yes, I'm working on that doc for now to come up a very precise and as simple as possible definitions. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
DataArray.loc fails for duplicates where DataFrame works 357156174 | |
420362244 | https://github.com/pydata/xarray/issues/2399#issuecomment-420362244 | https://api.github.com/repos/pydata/xarray/issues/2399 | MDEyOklzc3VlQ29tbWVudDQyMDM2MjI0NA== | horta 514522 | 2018-09-11T17:52:29Z | 2018-09-11T17:52:29Z | CONTRIBUTOR | Hi again. I'm working on a precise definition of xarray and indexing. I find the official one a bit hard to understand. It might help me come up with a reasonable way to handle duplicate indices. https://drive.google.com/file/d/1uJ_U6nedkNe916SMViuVKlkGwPX-mGK7/view?usp=sharing |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
DataArray.loc fails for duplicates where DataFrame works 357156174 | |
419714631 | https://github.com/pydata/xarray/issues/2399#issuecomment-419714631 | https://api.github.com/repos/pydata/xarray/issues/2399 | MDEyOklzc3VlQ29tbWVudDQxOTcxNDYzMQ== | horta 514522 | 2018-09-09T13:04:12Z | 2018-09-09T13:04:12Z | CONTRIBUTOR | I see. Now I read about it, let me give another shot. Let
and
The result of
as per column vector representation assumption. AnswerLaying down the first dimension gives | y | z | x | |---|---|---| | a | a | a | | | | a | By order, | y | z | x | dim_1 |---|---|---|-------| | a | a | a | ? | | | | a | ? | where | y | z | x | dim_1 |---|---|---|-------| | a | a | a | ? | | a | a | a | ? | And here is my suggestions. Use the mapping The answer is
for ```
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
DataArray.loc fails for duplicates where DataFrame works 357156174 | |
419383633 | https://github.com/pydata/xarray/issues/2399#issuecomment-419383633 | https://api.github.com/repos/pydata/xarray/issues/2399 | MDEyOklzc3VlQ29tbWVudDQxOTM4MzYzMw== | horta 514522 | 2018-09-07T09:39:01Z | 2018-09-07T09:39:01Z | CONTRIBUTOR | Now I see the problem. But I think it is solvable. I will ignore the dimension names for now as I don't have much experience with xarray yet. The code
can be understood as defining two indexed arrays:
Algorithm:
Concretely, the solution is a bi-dimensional, 1x2 array: | 0 1 |. There is another relevant example. Let the code be
We have Algorithm:
The solution is a bi-dimensional, 1x3 array: | 0 1 2 | Explanation
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
DataArray.loc fails for duplicates where DataFrame works 357156174 | |
419166914 | https://github.com/pydata/xarray/issues/2399#issuecomment-419166914 | https://api.github.com/repos/pydata/xarray/issues/2399 | MDEyOklzc3VlQ29tbWVudDQxOTE2NjkxNA== | horta 514522 | 2018-09-06T16:56:44Z | 2018-09-06T16:56:44Z | CONTRIBUTOR | Thanks for the feedback!
```python import pandas as pd df = pd.DataFrame(data=[0, 1, 2], index=list("aab")) print(df.loc[list("ab")]) 0a 0a 1b 2``` is an INNER JOIN between the two indexes
Another example: ```python import pandas as pd df = pd.DataFrame(data=[0, 1], index=list("aa")) print(df.loc[list("aa")]) 0a 0a 1a 0a 1``` is again an INNER JOIN between the two indexes
This translate into an unidimensional index:
Converting it back to the matricial representation:
In summary, my suggestion is to consider the possibility of defining indexing The multi-dimensional indexing, as far as I can see, can always be transformed into the uni-dimensional case and treated as such. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
DataArray.loc fails for duplicates where DataFrame works 357156174 |
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 1