home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

9 rows where issue = 823955593 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 4

  • dcherian 4
  • Illviljan 3
  • max-sixty 1
  • pep8speaks 1

author_association 2

  • MEMBER 8
  • NONE 1

issue 1

  • Allow dataset interpolation with different datatypes · 9 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
840639292 https://github.com/pydata/xarray/pull/5008#issuecomment-840639292 https://api.github.com/repos/pydata/xarray/issues/5008 MDEyOklzc3VlQ29tbWVudDg0MDYzOTI5Mg== dcherian 2448579 2021-05-13T15:28:54Z 2021-05-13T15:28:54Z MEMBER

Oops just noticed this is missing a whats-new note. Can you send in a PR with that note please?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow dataset interpolation with different datatypes 823955593
840638811 https://github.com/pydata/xarray/pull/5008#issuecomment-840638811 https://api.github.com/repos/pydata/xarray/issues/5008 MDEyOklzc3VlQ29tbWVudDg0MDYzODgxMQ== dcherian 2448579 2021-05-13T15:28:10Z 2021-05-13T15:28:10Z MEMBER

Thanks @Illviljan ! Great PR. Thank you for your patience

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow dataset interpolation with different datatypes 823955593
840430617 https://github.com/pydata/xarray/pull/5008#issuecomment-840430617 https://api.github.com/repos/pydata/xarray/issues/5008 MDEyOklzc3VlQ29tbWVudDg0MDQzMDYxNw== Illviljan 14371165 2021-05-13T09:14:34Z 2021-05-13T09:14:34Z MEMBER

@dcherian, renamed the parameter and fixed some errors due to the #5102 merge.

Docs failure seems unrelated.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow dataset interpolation with different datatypes 823955593
792305103 https://github.com/pydata/xarray/pull/5008#issuecomment-792305103 https://api.github.com/repos/pydata/xarray/issues/5008 MDEyOklzc3VlQ29tbWVudDc5MjMwNTEwMw== pep8speaks 24736507 2021-03-07T16:21:56Z 2021-05-13T08:27:50Z NONE

Hello @Illviljan! 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 2021-05-13 08:27:50 UTC
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow dataset interpolation with different datatypes 823955593
822087646 https://github.com/pydata/xarray/pull/5008#issuecomment-822087646 https://api.github.com/repos/pydata/xarray/issues/5008 MDEyOklzc3VlQ29tbWVudDgyMjA4NzY0Ng== max-sixty 5635139 2021-04-18T23:47:33Z 2021-04-18T23:47:33Z MEMBER

Let's discuss this at the next dev meeting.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow dataset interpolation with different datatypes 823955593
798252585 https://github.com/pydata/xarray/pull/5008#issuecomment-798252585 https://api.github.com/repos/pydata/xarray/issues/5008 MDEyOklzc3VlQ29tbWVudDc5ODI1MjU4NQ== Illviljan 14371165 2021-03-13T12:05:00Z 2021-03-13T12:05:00Z MEMBER

Well, as a user I was very confused why my boolean variables silently disappeared. And I don't get why ds.interp has any mandate to drop variables, if it can't handle interpolating a variable with the method an error should've been raised. But I'm a lazy user too so I of course would prefer to not have to deal with errors or figure out which variables were dropped and do multiple interpolation steps and finally merge the different datasets back together again. This is why I prefer ds.interp to do the only current method that makes sense for non-numerics rather than dropping them.

ds.interp currently only interpolates if var.dtype.kind in "uifc", so it ignores bools, strings, and objects for any method. Which made sense I think because the scipy interpolants always attempts to force to float. This is why I use reindex_variables as it both retains the dtype and handles strings/objects just fine.

I've added a parameter now method_for_non_numerics for these cases now, so now you can choose which reindex method you want.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow dataset interpolation with different datatypes 823955593
796790127 https://github.com/pydata/xarray/pull/5008#issuecomment-796790127 https://api.github.com/repos/pydata/xarray/issues/5008 MDEyOklzc3VlQ29tbWVudDc5Njc5MDEyNw== dcherian 2448579 2021-03-11T14:48:08Z 2021-03-11T14:48:08Z MEMBER

How do you linearly interpolate strings, objects or booleans?

This is why we drop them now. my point is that doing "nearest" when the user has specified method="linear" is v. confusing. Perhaps we should have method="linear+nearest" (or something better) for what you propose: linear for numeric, nearest for everything else.

Q: Does the current version of xarray just ignore strings, objects & booleans when method="nearest"?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow dataset interpolation with different datatypes 823955593
794715751 https://github.com/pydata/xarray/pull/5008#issuecomment-794715751 https://api.github.com/repos/pydata/xarray/issues/5008 MDEyOklzc3VlQ29tbWVudDc5NDcxNTc1MQ== Illviljan 14371165 2021-03-10T01:39:30Z 2021-03-10T05:08:32Z MEMBER

How do you linearly interpolate strings, objects or booleans?

The problem for me is that we drop all the non-valid variables when I want linear interpolation for most of my stuff. One can argue it could be either of bfill, ffill or nearest but I chose nearest because that's an option for both missing.interp and reindex_variables. I suppose we can add it as an option? But what should the option be called when we want a backup interpolation method that does not modify the elementwise values? And should it then only be reindex_variables specific?

Another case I've been pondering how to handle is when numbers are used as IDs. Then it doesn't make sense to do interpolation that messes with the elements as well. But these integers are not easily determined though because you can use integers just for performance reasons and then wouldn't mind it becoming floats later. Maybe they will continue staying a special case.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow dataset interpolation with different datatypes 823955593
794454523 https://github.com/pydata/xarray/pull/5008#issuecomment-794454523 https://api.github.com/repos/pydata/xarray/issues/5008 MDEyOklzc3VlQ29tbWVudDc5NDQ1NDUyMw== dcherian 2448579 2021-03-09T21:06:38Z 2021-03-09T21:06:38Z MEMBER

This seems like a good change but shouldn't we do this only when method="nearest"?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow dataset interpolation with different datatypes 823955593

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