home / github

Menu
  • GraphQL API
  • Search all tables

issues

Table actions
  • GraphQL API for issues

2 rows where type = "pull" and user = 2272878 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

type 1

  • pull · 2 ✖

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
753097418 MDExOlB1bGxSZXF1ZXN0NTI5MjQxMDA1 4622 Add additional str accessor methods for DataArray toddrjen 2272878 closed 0     14 2020-11-30T02:48:36Z 2021-03-12T08:44:00Z 2021-03-11T17:49:32Z CONTRIBUTOR   0 pydata/xarray/pulls/4622

This implements the following additional string accessor methods, based loosely on the versions in pandas:

One-to-one

  • [x] casefold(self)
  • [x] normalize(self, form)

One-to-many

  • [x] extract(self, pat[, flags, expand])
  • [x] extractall(self, pat[, flags])
  • [x] findall(self, pat[, flags])
  • [x] get_dummies(self[, sep])
  • [x] partition(self[, sep, expand])
  • [x] rpartition(self[, sep, expand])
  • [x] rsplit(self[, pat, n, expand])
  • [x] split(self[, pat, n, expand])

Many-to-one

  • [x] cat(self[, others, sep, na_rep, join])
  • [x] join(self, sep)

Operators

  • [x] +
  • [x] *
  • [x] %

Other

  • [x] Allow vectorized arguments.

  • [x] Closes #3940

  • [x] Tests added
  • [x] Passes isort . && black . && mypy . && flake8
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • [x] New functions/methods are listed in api.rst
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4622/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
584837010 MDExOlB1bGxSZXF1ZXN0MzkxMzQ2OTQz 3871 Implement idxmax and idxmin functions toddrjen 2272878 closed 0     20 2020-03-20T04:27:32Z 2020-03-31T15:43:48Z 2020-03-29T01:54:25Z CONTRIBUTOR   0 pydata/xarray/pulls/3871

This implements idxmax and idxmin functions similar to thier pandas equivalents.

This is my first time contributing to the project so I am not certain the structure or approach is the best. Please let me know if there is a better way to implement this.

This also includes two other changes.

First, it drops some code for backwards-compatibility with numpy 1.12, which isn't supported. This code was hiding an error I needed to have access to in order to get the function working.

Second, it adds an option to Dataset.map to let you map DataArray methods by name. I used this to implement the Dataset versions of idxmax and idxmin.

  • [X] Closes #60
  • [X] Tests added
  • [X] Passes isort -rc . && black . && mypy . && flake8
  • [X] Fully documented, including whats-new.rst for all changes and api.rst for new API
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3871/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull

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