home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 659142025 and user = 8419157 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

  • DancingQuanta · 1 ✖

issue 1

  • Dataset plot line · 1 ✖

author_association 1

  • NONE 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
663157223 https://github.com/pydata/xarray/issues/4235#issuecomment-663157223 https://api.github.com/repos/pydata/xarray/issues/4235 MDEyOklzc3VlQ29tbWVudDY2MzE1NzIyMw== DancingQuanta 8419157 2020-07-23T18:15:33Z 2020-07-23T18:18:24Z NONE

To give a bit more context, an example code simulating an experimental measurement. ``` import numpy as np import xarray as xr from scipy.stats import norm from matplotlib import pyplot as plt

nominal x

x = xr.DataArray(np.arange(-10, 10, 0.1), dims='index', name='x')

Shift loc

loc = xr.DataArray(np.arange(-0.5, 1, 0.5), dims='loc', name='loc')

Number of experiments

exp = xr.DataArray(range(3), dims='exp', name='exp')

Add noise to x per experiment

noise = xr.DataArray(np.random.rand(len(x), len(loc)), coords={'loc': loc}, dims=['index', 'loc']) x = x + noise * 0.5

Measure

y = xr.apply_ufunc( norm.pdf, x, x['loc'], 1, input_core_dims=[['index'], [], []], output_core_dims=[['index']], vectorize=True )

Name

x.name = 'x' y.name = 'y'

Merge

data = xr.merge([x, y]) I wish to be able to use this

Plot y against x

data.plot.line(x='x', y='y', hue='loc') However, the closest I could get is with only `y` y.plot.line(x='index', hue='loc') ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Dataset plot line 659142025

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