issues
7 rows where user = 31126826 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: comments, updated_at, closed_at, created_at (date), updated_at (date), closed_at (date)
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1900706633 | I_kwDOAMm_X85xSntJ | 8200 | Wrong fallback version number when using PyInstaller | mancellin 31126826 | closed | 0 | 3 | 2023-09-18T11:13:53Z | 2023-09-18T12:14:10Z | 2023-09-18T12:08:04Z | CONTRIBUTOR | What is your issue?I'm trying to bundle some code using Xarray with PyInstaller. As a MRE, consider the following file: ```python test.pyimport pandas as pd
import xarray as xr
print(xr.version)
pd.DataFrame({'a': range(10)}).to_xarray()
Ideally, I would have expected the printed version to be Unfortunately, the actual version number is As a workaround, I added the line
Versions``` INSTALLED VERSIONS ------------------ commit: None python: 3.9.17 (main, Jul 5 2023, 20:41:20) [GCC 11.2.0] python-bits: 64 OS: Linux OS-release: 6.2.0-32-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: fr_FR.UTF-8 LOCALE: ('fr_FR', 'UTF-8') libhdf5: None libnetcdf: None xarray: 2023.8.0 pandas: 2.1.0 numpy: 1.26.0 scipy: None netCDF4: None pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: None nc_time_axis: None PseudoNetCDF: None iris: None bottleneck: None dask: None distributed: None matplotlib: None cartopy: None seaborn: None numbagg: None fsspec: None cupy: None pint: None sparse: None flox: None numpy_groupies: None setuptools: 58.1.0 pip: 23.0.1 conda: None pytest: None mypy: None IPython: None sphinx: None ``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/8200/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
666270493 | MDU6SXNzdWU2NjYyNzA0OTM= | 4275 | Interpolation along dimension with a single element | mancellin 31126826 | open | 0 | 3 | 2020-07-27T12:52:35Z | 2022-05-21T20:50:29Z | CONTRIBUTOR | Let me consider a DataArray with a dimension containing a single element: ```python In [1]: import numpy as np In [2]: import xarray as xr In [3]: da = xr.DataArray(np.linspace(0.0, 100.0, 101).reshape(1, 101), coords=[('x', [1.0]), ('y', np.linspace(0.0, 1.0, 101))]) ``` Asking More precisely, the 2D interpolation returns a NaN
ValueError Traceback (most recent call last) <ipython-input-6-efd4490bc97e> in <module> ----> 1 da.interp(x=1.0) ... ValueError: x and y arrays must have at least 2 entries ``` I understand why the interpolation is impossible in an array with a single element. However, this behavior breaks my assumption that Here, I would expect What do you think of this corner case? |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/4275/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray 13221727 | issue | ||||||||
589632313 | MDU6SXNzdWU1ODk2MzIzMTM= | 3910 | In-place addition of arrays with the same coords but in a different order | mancellin 31126826 | closed | 0 | 7 | 2020-03-28T18:27:58Z | 2020-06-24T14:41:06Z | 2020-06-24T14:41:06Z | CONTRIBUTOR | I have two DataArrays with the same dimension, but the index is in a different order.
Adding them with MCVE Code Sample```python import numpy as np import xarray as xr n = 5 d1 = np.arange(n) np.random.shuffle(d1) A = xr.DataArray(np.ones(n), coords=[('dim', d1)]) d2 = np.arange(n) np.random.shuffle(d2) B = xr.DataArray(np.ones(n), coords=[('dim', d2)]) print(A + B) A += B ``` Expected Output
Problem DescriptionThe in-place addition VersionsOutput of `xr.show_versions()`INSTALLED VERSIONS ------------------ commit: None python: 3.8.2 (default, Mar 26 2020, 15:53:00) [GCC 7.3.0] python-bits: 64 OS: Linux OS-release: 4.19.112-1-MANJARO machine: x86_64 processor: byteorder: little LC_ALL: None LANG: fr_FR.UTF-8 LOCALE: fr_FR.UTF-8 libhdf5: None libnetcdf: None xarray: 0.15.0 pandas: 1.0.3 numpy: 1.18.1 scipy: None netCDF4: None pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: None nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None dask: None distributed: None matplotlib: None cartopy: None seaborn: None numbagg: None setuptools: 46.1.1.post20200323 pip: 20.0.2 conda: None pytest: None IPython: None sphinx: None |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3910/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
601185984 | MDExOlB1bGxSZXF1ZXN0NDA0NDgzMTc2 | 3976 | Proposal for better error message about in-place operation | mancellin 31126826 | closed | 0 | 2 | 2020-04-16T15:46:56Z | 2020-06-24T14:41:06Z | 2020-06-24T14:41:06Z | CONTRIBUTOR | 0 | pydata/xarray/pulls/3976 | Trying to make error message slightly more informative when the user might expect automatic alignment with in-place operation.
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3976/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray 13221727 | pull | |||||
547091670 | MDU6SXNzdWU1NDcwOTE2NzA= | 3674 | Multi-index with categorical values | mancellin 31126826 | closed | 0 | 7 | 2020-01-08T20:43:04Z | 2020-03-13T19:55:07Z | 2020-03-13T19:55:07Z | CONTRIBUTOR | Building a dataset from pandas with a multi-index with categorical values: ```python import pandas as pd cat = pd.CategoricalDtype(categories=['foo', 'bar', 'baz']) i1 = pd.Series(['foo', 'bar'], dtype=cat) i2 = pd.Series(['bar', 'bar'], dtype=cat) df = pd.DataFrame({'i1': i1, 'i2': i2, 'values': [1, 2]}) ds = df.set_index(['i1', 'i2']).to_xarray() print(ds) ``` Expected output:
Actual output:
It is not wrong, but it is inconsistent with the non-categorical case (which gives the expected output above) and the single-index case (no filling with NaNs for single index). Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3674/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
580646897 | MDExOlB1bGxSZXF1ZXN0Mzg3ODE0OTU0 | 3860 | Fix multi-index with categorical values. | mancellin 31126826 | closed | 0 | 2 | 2020-03-13T14:44:59Z | 2020-03-13T19:55:07Z | 2020-03-13T19:55:07Z | CONTRIBUTOR | 0 | pydata/xarray/pulls/3860 | @fujiisoup Would you mind reviewing this PR? The bug was actually straightforward.
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3860/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray 13221727 | pull | |||||
546727720 | MDU6SXNzdWU1NDY3Mjc3MjA= | 3669 | Fail to sel() when index comes from categorical pandas Series | mancellin 31126826 | closed | 0 | 3 | 2020-01-08T09:00:20Z | 2020-01-25T22:38:20Z | 2020-01-25T22:38:20Z | CONTRIBUTOR | Dear xarray team, Thank you very much for your work on this useful package. Here is a bug I just found in my code. MCVE Code SampleCreating a Dataset from pandas when the coordinate is a categorical series: ```python import pandas as pd ind = pd.Series(['foo', 'bar'], dtype='category') df = pd.DataFrame({'ind': ind, 'values': [1, 2]}) df = df.set_index('ind') ds = df.to_xarray() print(ds.sel(ind='foo')) ``` Expected OutputWhen Problem DescriptionWhen Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3669/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
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]);