home / github

Menu
  • GraphQL API
  • Search all tables

issues

Table actions
  • GraphQL API for issues

7 rows where comments = 5, state = "closed" and user = 14371165 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

type 1

  • pull 7

state 1

  • closed · 7 ✖

repo 1

  • xarray 7
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
1975221937 PR_kwDOAMm_X85efDP6 8407 Add expand_dims Illviljan 14371165 closed 0     5 2023-11-03T00:01:22Z 2023-12-12T20:54:45Z 2023-12-01T18:52:11Z MEMBER   0 pydata/xarray/pulls/8407

This allows adding a dimension of an array. Which is relevant when for example using keepdims in NamedArray.reduce.

Normally you can do this with None but that's not really allowed in the getitem documentation currently https://data-apis.org/array-api/2022.12/API_specification/generated/array_api.array.getitem.html

Should follow the standard but with an additional dim argument, dim should be preferred over the axis argument. https://data-apis.org/array-api/draft/API_specification/generated/array_api.expand_dims.html

xref #8344, #8406

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/8407/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
1931220385 PR_kwDOAMm_X85cKhhk 8279 Add pyright type checker Illviljan 14371165 closed 0     5 2023-10-07T06:38:14Z 2023-10-09T12:32:29Z 2023-10-09T12:32:28Z MEMBER   0 pydata/xarray/pulls/8279

It can be helpful to get a second opinion from another typer checker than mypy.

The CI activates when the run-pyright label is added.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/8279/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
1444440024 PR_kwDOAMm_X85CpkQO 7277 Require to explicitly defining optional dimensions such as hue and markersize Illviljan 14371165 closed 0     5 2022-11-10T19:23:28Z 2023-02-11T20:55:16Z 2023-02-11T20:55:16Z MEMBER   0 pydata/xarray/pulls/7277
  • [x] Closes #7314
  • [x] Closes #7268

  • Matplotlib adds default colors with plt.plot(x, y) when y is a 2D array.

  • Matplotlib prioritizes c over default colors with plt.plot(x, y, c="blue") when y is a 2D array.
  • Seaborn prioritizes hue over c, but all plot axes has to be explicit.

The plot1d function now follows closer to seaborns example and require explicitly defining optional dimensions such as hue/markersize. Positives and negatives: +++ Reliable performance, won't accidentally choose large and heavy arrays to plot. - Loss of dimension information for default values, will essentially flatten the n-dimensional arrays. - Other xarray plot functions guesses quite a bit as well, API is not consistent.

Required dimensions like the x-axis will still be guessed since the mpl errors weren't very intuitive.

While at it: * Make it possible to prioritize certain mpl kwargs when hue/markersize isn't defined. * Fix integer coords in plot1d and facetgrid, use .coords instead of getitem.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7277/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
1124879701 PR_kwDOAMm_X84yHgUf 6239 Type NDArrayMixin Illviljan 14371165 closed 0     5 2022-02-05T09:15:34Z 2022-08-12T09:08:32Z 2022-08-12T09:08:32Z MEMBER   1 pydata/xarray/pulls/6239

Activate typing on these mixins by removing the Any.

  • [ ] Closes #xxxx
  • [ ] Tests added
  • [ ] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • [ ] New functions/methods are listed in api.rst
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/6239/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
1316549018 PR_kwDOAMm_X848Bm7B 6823 Rely on array backend for string formatting Illviljan 14371165 closed 0     5 2022-07-25T09:43:21Z 2022-08-08T15:11:34Z 2022-08-08T15:11:34Z MEMBER   0 pydata/xarray/pulls/6823
  • Rely on array backend for string formatting instead of forcing to numpy arrays. The previous implementation used .values to force to numpy arrays which doesn't work for sparse arrays and might be scary in the case of large dask arrays.
  • Only allow format_spec when dealing with scalar arrays, shape=(). Using f-strings is a common method to print the repr. If we want to have full support of .__format__ we should probably add format_spec as input to formatting.array_repr.

  • [x] Closes #6822

  • [x] Tests added
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst

```python import pandas as pd import xarray as xr

s = pd.Series( range(4), index=pd.MultiIndex.from_product([list("ab"), list("cd")]), )

da = xr.DataArray.from_series(s, sparse=True)

Handle sparse:

print(f"Error: {da} is sparse") Error: <xarray.DataArray (level_0: 2, level_1: 2)> <COO: shape=(2, 2), dtype=float64, nnz=4, fill_value=nan> Coordinates: * level_0 (level_0) object 'a' 'b' * level_1 (level_1) object 'c' 'd' is sparse

Handle format_spec:

da = xr.DataArray([1, 2, 3])

print(f'{da[0]}') <xarray.DataArray ()> array(1)

print(f'{da[0]:d}') 1

print(f'{da[0]:f}') 1.000000

da = xr.DataArray([1, 2, 3]) print(f'{da:.f}') Traceback (most recent call last): (...) NotImplementedError: Using format_spec is only supported when shape is (). Got shape = (3,). ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/6823/reactions",
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
1305351232 PR_kwDOAMm_X847b6kv 6784 Switch to T_DataArray and T_Dataset in concat Illviljan 14371165 closed 0     5 2022-07-14T22:31:02Z 2022-07-26T15:07:18Z 2022-07-18T14:46:07Z MEMBER   0 pydata/xarray/pulls/6784

Noticed these issues when trying to add typing to some helper functions in #6778.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/6784/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
1250957159 PR_kwDOAMm_X844l9zQ 6647 Allow all interp methods in typing Illviljan 14371165 closed 0     5 2022-05-27T16:30:54Z 2022-05-29T11:33:43Z 2022-05-29T01:12:08Z MEMBER   0 pydata/xarray/pulls/6647

Follow up from #6637.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/6647/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 38.258ms · About: xarray-datasette