home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "MEMBER", issue = 823955593 and user = 14371165 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • Illviljan · 3 ✖

issue 1

  • Allow dataset interpolation with different datatypes · 3 ✖

author_association 1

  • MEMBER · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
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
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
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

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