home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 398152613 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • fujiisoup 3
  • shoyer 1

issue 1

  • datetime interpolation doesn't work · 4 ✖

author_association 1

  • MEMBER 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
453667107 https://github.com/pydata/xarray/issues/2667#issuecomment-453667107 https://api.github.com/repos/pydata/xarray/issues/2667 MDEyOklzc3VlQ29tbWVudDQ1MzY2NzEwNw== fujiisoup 6815844 2019-01-11T21:46:10Z 2019-01-11T21:46:10Z MEMBER

Thanks.

Then, it would be probably nice if datetime_to_numeric only accepts np.ndarray and da.array not Variable or DataArray, and move this function to duck_array_ops. I'll send a fix.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  datetime interpolation doesn't work 398152613
453666317 https://github.com/pydata/xarray/issues/2667#issuecomment-453666317 https://api.github.com/repos/pydata/xarray/issues/2667 MDEyOklzc3VlQ29tbWVudDQ1MzY2NjMxNw== shoyer 1217238 2019-01-11T21:43:08Z 2019-01-11T21:43:08Z MEMBER

I think the best we can do is to is use masking on the result, e.g., with np.where.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  datetime interpolation doesn't work 398152613
453665698 https://github.com/pydata/xarray/issues/2667#issuecomment-453665698 https://api.github.com/repos/pydata/xarray/issues/2667 MDEyOklzc3VlQ29tbWVudDQ1MzY2NTY5OA== fujiisoup 6815844 2019-01-11T21:40:50Z 2019-01-11T21:40:50Z MEMBER

Is there a good way to convert a timedelta array including NaT to a float array with nan? array.astype(float) makes NaT a certain large value. ```python In [1]: import numpy as np

In [2]: import pandas as pd

In [3]: time = np.array(pd.date_range('15/12/1999', periods=11))

In [4]: time[8: 11] = np.nan

In [5]: time
Out[5]: array(['1999-12-15T00:00:00.000000000', '1999-12-16T00:00:00.000000000', '1999-12-17T00:00:00.000000000', '1999-12-18T00:00:00.000000000', '1999-12-19T00:00:00.000000000', '1999-12-20T00:00:00.000000000', '1999-12-21T00:00:00.000000000', '1999-12-22T00:00:00.000000000', 'NaT', 'NaT', 'NaT'], dtype='datetime64[ns]')

In [6]: time.astype(float)
Out[6]: array([ 9.45216000e+17, 9.45302400e+17, 9.45388800e+17, 9.45475200e+17, 9.45561600e+17, 9.45648000e+17, 9.45734400e+17, 9.45820800e+17, -9.22337204e+18, -9.22337204e+18, -9.22337204e+18])

In [7]: (time - np.min(time)).astype(float)
Out[7]: array([ 0.00000000e+00, 8.64000000e+13, 1.72800000e+14, 2.59200000e+14, 3.45600000e+14, 4.32000000e+14, 5.18400000e+14, 6.04800000e+14, -9.22337204e+18, -9.22337204e+18, -9.22337204e+18]) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  datetime interpolation doesn't work 398152613
453399209 https://github.com/pydata/xarray/issues/2667#issuecomment-453399209 https://api.github.com/repos/pydata/xarray/issues/2667 MDEyOklzc3VlQ29tbWVudDQ1MzM5OTIwOQ== fujiisoup 6815844 2019-01-11T06:57:01Z 2019-01-11T06:57:01Z MEMBER

Oops. This is definitely my bug. This line should return a Variable. I will send a fix.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  datetime interpolation doesn't work 398152613

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