home / github

Menu
  • Search all tables
  • GraphQL API

issues

Table actions
  • GraphQL API for issues

2 rows where "closed_at" is on date 2015-08-01, repo = 13221727 and user = 1217238 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: closed_at (date)

type 2

  • issue 1
  • pull 1

state 1

  • closed 2

repo 1

  • xarray · 2 ✖
id node_id number title user state locked assignee milestone comments created_at updated_at ▲ closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
98274024 MDExOlB1bGxSZXF1ZXN0NDEyODY3ODI= 504 ENH: where method for masking xray objects according to some criteria shoyer 1217238 closed 0     12 2015-07-30T21:56:00Z 2015-08-01T20:56:33Z 2015-08-01T20:56:31Z MEMBER   0 pydata/xarray/pulls/504

Fixes #503

Example usage:

``` In [13]: x = xray.DataArray(np.arange(9).reshape(3, 3), dims=['x', 'y'])

In [14]: x.where(x > 4) Out[14]: <xray.DataArray (x: 3, y: 3)> array([[ nan, nan, nan], [ nan, nan, 5.], [ 6., 7., 8.]]) Coordinates: * y (y) int64 0 1 2 * x (x) int64 0 1 2 ```

Example from "What's new":

``` In [4]: ds = xray.Dataset(coords={'x': range(100), 'y': range(100)})

In [5]: ds['distance'] = np.sqrt(ds.x ** 2 + ds.y ** 2)

In [6]: ds.distance.where(ds.distance < 100).plot() Out[6]: <matplotlib.image.AxesImage at 0x11a819690> ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/504/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
98250388 MDU6SXNzdWU5ODI1MDM4OA== 503 Add "where" method copied from pandas shoyer 1217238 closed 0     0 2015-07-30T19:57:26Z 2015-08-01T20:56:31Z 2015-08-01T20:56:31Z MEMBER      

Instead of writing: (ds * (ds > 7)).sum() / (ds > 7).sum()

It would be nice to be able to write: ds.where(ds > 7).mean()

For more examples, see: http://pandas.pydata.org/pandas-docs/stable/indexing.html#the-where-method-and-masking

This came up on the mailing list recently: https://groups.google.com/forum/#!topic/xray-dev/mEo88uGl8g8

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/503/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed xarray 13221727 issue

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issues] (
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [number] INTEGER,
   [title] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [state] TEXT,
   [locked] INTEGER,
   [assignee] INTEGER REFERENCES [users]([id]),
   [milestone] INTEGER REFERENCES [milestones]([id]),
   [comments] INTEGER,
   [created_at] TEXT,
   [updated_at] TEXT,
   [closed_at] TEXT,
   [author_association] TEXT,
   [active_lock_reason] TEXT,
   [draft] INTEGER,
   [pull_request] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [state_reason] TEXT,
   [repo] INTEGER REFERENCES [repos]([id]),
   [type] TEXT
);
CREATE INDEX [idx_issues_repo]
    ON [issues] ([repo]);
CREATE INDEX [idx_issues_milestone]
    ON [issues] ([milestone]);
CREATE INDEX [idx_issues_assignee]
    ON [issues] ([assignee]);
CREATE INDEX [idx_issues_user]
    ON [issues] ([user]);
Powered by Datasette · Queries took 2405.488ms · About: xarray-datasette