home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

18 rows where user = 3274 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 8

  • Poor error message on Dataset.sum(axis=...) 4
  • Feature request: How Do I add a new variable to a data set? 3
  • How do I add a new variable to dataset. 3
  • ArviZ Dev Xarray Dev Get Together? 3
  • Request error handling in dataarray construction 2
  • Documentation Feature Request: Rolling and Coordinates 1
  • Explanation of full DataFrame to Dataset translation 1
  • Clarify drop_vars return value. 1

user 1

  • rpgoldman · 18 ✖

author_association 1

  • CONTRIBUTOR 18
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
663931037 https://github.com/pydata/xarray/pull/4244#issuecomment-663931037 https://api.github.com/repos/pydata/xarray/issues/4244 MDEyOklzc3VlQ29tbWVudDY2MzkzMTAzNw== rpgoldman 3274 2020-07-26T03:29:18Z 2020-07-26T03:29:18Z CONTRIBUTOR

Thanks @rpgoldman !

What do you think of that change? Feel free to discard if you disagree and we'll merge your initial suggestion.

How about we keep your sentence which is much better than my first sentence, and my second sentence? I think it's important to make the point that this function does not have side effects.

Any idea why the docs build failed?

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Clarify drop_vars return value. 663287119
601932932 https://github.com/pydata/xarray/issues/3873#issuecomment-601932932 https://api.github.com/repos/pydata/xarray/issues/3873 MDEyOklzc3VlQ29tbWVudDYwMTkzMjkzMg== rpgoldman 3274 2020-03-20T22:14:37Z 2020-03-20T22:14:37Z CONTRIBUTOR

@keewis -- Yes, that is what I ended up with: making a multi-indexed pandas data array first. But I still think it would be helpful to have this information in some of the tutorial for xarray.

Also, one thing that can happen that could be addressed in this process is a non-unique multi-index. I did this with a set of experimental data, and then .to_xarray() errored out because the multi index was non-unique, which is OK for pandas apparently, but not for xarray.

Note that this isn't necessarily pathological: This happened to me because there was oversampling of some data points in my data set.

So it would be very helpful for the tutorial to address this -- if you have multiple samples at the same point in the condition space, how do you add arbitrary indexing so that you can successfully translate from a data frame with non-unique indexing to an xarray. Is there some way to do this automatically, so we have the equivalent of lat x lon x 0, lat x lon x 1, and so on?

Even the diagnostic process is a bit of a nuisance: import numpy as np foo = filtered.index[np.where(filtered.index.duplicated(False))] foo.sort_values() so it would be nice to have a step-by-step translation guide.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Explanation of full DataFrame to Dataset translation 585323675
600360161 https://github.com/pydata/xarray/issues/3765#issuecomment-600360161 https://api.github.com/repos/pydata/xarray/issues/3765 MDEyOklzc3VlQ29tbWVudDYwMDM2MDE2MQ== rpgoldman 3274 2020-03-18T00:10:59Z 2020-03-18T00:10:59Z CONTRIBUTOR

@max-sixty I can see about adding other times, if someone wants to propose them, but we might have to just re-poll.

We have always had our meetings early in the morning wrt PT because of people in Europe, I believe.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ArviZ Dev Xarray Dev Get Together? 563762277
600167726 https://github.com/pydata/xarray/issues/3765#issuecomment-600167726 https://api.github.com/repos/pydata/xarray/issues/3765 MDEyOklzc3VlQ29tbWVudDYwMDE2NzcyNg== rpgoldman 3274 2020-03-17T16:28:06Z 2020-03-17T16:28:06Z CONTRIBUTOR

Doodle poll: https://doodle.com/poll/x6quxzmyu5qxqd98

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ArviZ Dev Xarray Dev Get Together? 563762277
600130332 https://github.com/pydata/xarray/issues/3765#issuecomment-600130332 https://api.github.com/repos/pydata/xarray/issues/3765 MDEyOklzc3VlQ29tbWVudDYwMDEzMDMzMg== rpgoldman 3274 2020-03-17T15:22:02Z 2020-03-17T15:22:02Z CONTRIBUTOR

27th works for me, 25th does not. Thanks for setting this up.

I have a paid Doodle account, if you would like me to set up a poll instead of doing this here.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ArviZ Dev Xarray Dev Get Together? 563762277
573130411 https://github.com/pydata/xarray/pull/3679#issuecomment-573130411 https://api.github.com/repos/pydata/xarray/issues/3679 MDEyOklzc3VlQ29tbWVudDU3MzEzMDQxMQ== rpgoldman 3274 2020-01-10T17:30:50Z 2020-01-10T17:30:50Z CONTRIBUTOR

OK, I'm not trying to be difficult, but I think someone else who knows how RST works could fix this in 2.4 seconds, or I could bang my head on it for hours.

Would someone please just fix my syntax error and merge this?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  How do I add a new variable to dataset. 547702622
573128900 https://github.com/pydata/xarray/pull/3679#issuecomment-573128900 https://api.github.com/repos/pydata/xarray/issues/3679 MDEyOklzc3VlQ29tbWVudDU3MzEyODkwMA== rpgoldman 3274 2020-01-10T17:26:36Z 2020-01-10T17:26:36Z CONTRIBUTOR

I didn't get the cross-reference syntax right. I've tried to fix it, and am waiting for a new check.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  How do I add a new variable to dataset. 547702622
573108272 https://github.com/pydata/xarray/issues/3678#issuecomment-573108272 https://api.github.com/repos/pydata/xarray/issues/3678 MDEyOklzc3VlQ29tbWVudDU3MzEwODI3Mg== rpgoldman 3274 2020-01-10T16:34:02Z 2020-01-10T16:34:02Z CONTRIBUTOR

@mathause Thank you! That never occurred to me.

I thought it was something wrong with the way I was using conjunction, but now I believe it was just a matter of operator precedence.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Feature request: How Do I add a new variable to a data set? 547680465
572812722 https://github.com/pydata/xarray/pull/3679#issuecomment-572812722 https://api.github.com/repos/pydata/xarray/issues/3679 MDEyOklzc3VlQ29tbWVudDU3MjgxMjcyMg== rpgoldman 3274 2020-01-10T00:02:57Z 2020-01-10T00:02:57Z CONTRIBUTOR

OK, I have tried to do as you suggested.

I looked at the directions for building the docs as you suggested, and I'm afraid it's too big an ask for me. I don't use conda, and I can't spare the time to learn it. Similarly, I know enough RST to write numpy-style docstrings, but I don't have the time to learn Sphinx. With all due respect, if xarray wants contributions from people like me, something has to be done to make this easier.

I'm just doing this because I'm contributing to Arviz, which depends on xarray. I can try to fix things if I see something wrong in the "Docs" check, but that's all I can do, I'm afraid.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  How do I add a new variable to dataset. 547702622
572744391 https://github.com/pydata/xarray/issues/3678#issuecomment-572744391 https://api.github.com/repos/pydata/xarray/issues/3678 MDEyOklzc3VlQ29tbWVudDU3Mjc0NDM5MQ== rpgoldman 3274 2020-01-09T20:38:35Z 2020-01-09T20:38:35Z CONTRIBUTOR

@dcherian I know it's kind of overloading this issue, but if you would also LMK if there's a clean way to do compound querying, the way one can in Pandas, I will also put in something about that.

foo = data_array.where(np.logical_and(other_data_array['bar'] == 12, other_data_array['baz'] < 22))

...is all I have come up with and this gets bloated and unreadable really quickly if there are multiple conjuncts. Infix conjunction seems not to work unless I take the .values of the data array subsets, which adds its own layer of bloat.

I figure this is something that lots of people will want to do, but it seems a lot harder than pd.DataFrame.query()

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Feature request: How Do I add a new variable to a data set? 547680465
572742682 https://github.com/pydata/xarray/issues/3678#issuecomment-572742682 https://api.github.com/repos/pydata/xarray/issues/3678 MDEyOklzc3VlQ29tbWVudDU3Mjc0MjY4Mg== rpgoldman 3274 2020-01-09T20:33:54Z 2020-01-09T20:33:54Z CONTRIBUTOR

OK, done. Per my comments, I don't have the ability to build and check the sphinx code, so please check before merging.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Feature request: How Do I add a new variable to a data set? 547680465
572216092 https://github.com/pydata/xarray/issues/3437#issuecomment-572216092 https://api.github.com/repos/pydata/xarray/issues/3437 MDEyOklzc3VlQ29tbWVudDU3MjIxNjA5Mg== rpgoldman 3274 2020-01-08T19:18:53Z 2020-01-08T19:18:53Z CONTRIBUTOR

Good point: that might be a lot easier than picking up the information on the way down the stack in an exception handler.

I don't know how many call sites there are for this, so no idea how difficult that would be.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Request error handling in dataarray construction 511477827
572133055 https://github.com/pydata/xarray/issues/3437#issuecomment-572133055 https://api.github.com/repos/pydata/xarray/issues/3437 MDEyOklzc3VlQ29tbWVudDU3MjEzMzA1NQ== rpgoldman 3274 2020-01-08T15:54:55Z 2020-01-08T15:54:55Z CONTRIBUTOR

I think the Right Thing here would be to raise a specific Exception class instead of ValueError in the case of dimension mismatch. Then a caller can trap that exception, add information about the variable that cannot be translated, and re-signal.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Request error handling in dataarray construction 511477827
551919833 https://github.com/pydata/xarray/issues/3499#issuecomment-551919833 https://api.github.com/repos/pydata/xarray/issues/3499 MDEyOklzc3VlQ29tbWVudDU1MTkxOTgzMw== rpgoldman 3274 2019-11-08T17:32:27Z 2019-11-08T17:32:27Z CONTRIBUTOR

A particular ask is "how do we get names (strings) out of the label?"

When I take the list of keys from the label, I get coordinate names, but when I access the coordinate names, I don't get the coordinate values, as I would expect. How do I get these?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Documentation Feature Request: Rolling and Coordinates 520137402
547619497 https://github.com/pydata/xarray/issues/3461#issuecomment-547619497 https://api.github.com/repos/pydata/xarray/issues/3461 MDEyOklzc3VlQ29tbWVudDU0NzYxOTQ5Nw== rpgoldman 3274 2019-10-29T20:40:35Z 2019-10-29T20:40:35Z CONTRIBUTOR

I guess so. Minor preference for checking for inappropriate numpy errors like this and giving a better error message, but I can see this would be difficult.

This won't be the first bewildering error message problem from **kwargs, and it won't be the last. This is a python problem, not an xarray one, per se.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Poor error message on Dataset.sum(axis=...) 514191264
547614650 https://github.com/pydata/xarray/issues/3461#issuecomment-547614650 https://api.github.com/repos/pydata/xarray/issues/3461 MDEyOklzc3VlQ29tbWVudDU0NzYxNDY1MA== rpgoldman 3274 2019-10-29T20:28:30Z 2019-10-29T20:28:30Z CONTRIBUTOR

@crusaderky Thanks. Yes, that was exactly what I was trying to do.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Poor error message on Dataset.sum(axis=...) 514191264
547614052 https://github.com/pydata/xarray/issues/3461#issuecomment-547614052 https://api.github.com/repos/pydata/xarray/issues/3461 MDEyOklzc3VlQ29tbWVudDU0NzYxNDA1Mg== rpgoldman 3274 2019-10-29T20:27:00Z 2019-10-29T20:27:00Z CONTRIBUTOR

@crusaderky I see what I did wrong. I mistakenly read the documentation page for DataArray.sum() instead of DataSet.sum(). The former does support an axis argument, and I believe it makes sense there.

Blacklisting these arguments sounds like a great idea, thanks.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Poor error message on Dataset.sum(axis=...) 514191264
547612958 https://github.com/pydata/xarray/issues/3461#issuecomment-547612958 https://api.github.com/repos/pydata/xarray/issues/3461 MDEyOklzc3VlQ29tbWVudDU0NzYxMjk1OA== rpgoldman 3274 2019-10-29T20:24:25Z 2019-10-29T20:24:25Z CONTRIBUTOR

@max-sixty I was trying to sum across the data variables, rather than across a dimension.

What I ended up doing was taking the data for each of the data variables and adding the resulting numpy arrays. This gave me the sum across the data variables, along the dim (each data variable is one dimensional and they share a single dimension).

I'm not sure how to suggest fixing the error message, because I'm not sure what xarray doesn't like.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Poor error message on Dataset.sum(axis=...) 514191264

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 16.782ms · About: xarray-datasette