home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 792294554

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/2414#issuecomment-792294554 https://api.github.com/repos/pydata/xarray/issues/2414 792294554 MDEyOklzc3VlQ29tbWVudDc5MjI5NDU1NA== 13301940 2021-03-07T15:13:34Z 2021-03-07T15:13:34Z MEMBER

Unless I am missing something, this appears to have been addressed:

```python In [1]: import xarray as xr import numpy as np

In [2]: import numpy as np

In [3]: er = xr.DataArray(np.array((np.arange(3), np.arange(6)))) <ipython-input-3-64075f0108e0>:3: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. er = xr.DataArray(np.array((np.arange(3), np.arange(6))))

In [4]: er Out[4]: <xarray.DataArray (dim_0: 2)> array([array([0, 1, 2]), array([0, 1, 2, 3, 4, 5])], dtype=object) Dimensions without coordinates: dim_0 ```

```python In [6]: er.data[0] Out[6]: array([0, 1, 2])

In [7]: er[0] Out[7]: <xarray.DataArray ()> array(array([0, 1, 2]), dtype=object)

In [8]: er[1] Out[8]: <xarray.DataArray ()> array(array([0, 1, 2, 3, 4, 5]), dtype=object)

In [9]: xr.version Out[9]: '0.17.0'

In [10]: np.version Out[10]: '1.20.1' ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  359679690
Powered by Datasette · Queries took 0.641ms · About: xarray-datasette