home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 416879239

This data as json

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
416879239 MDU6SXNzdWU0MTY4NzkyMzk= 2798 future warning: deprecation in set_index 22060413 closed 0     2 2019-03-04T16:17:46Z 2019-06-21T16:24:28Z 2019-06-21T16:24:28Z NONE      

Code Sample, a copy-pastable example if possible

```

seismic = xr.DataArray(data.T, coords={'shots' : ('traces', shot),'channel' : ('traces', channel)}, dims=['twt', 'traces'])

seismic = seismic.set_index(traces=['shots', 'channel']) I keep getting this warning message

C:\Miniconda3\lib\site-packages\xarray\core\dataset.py:167: FutureWarning: the 'labels' keyword is deprecated, use 'codes' instead idx = pd.MultiIndex(labels=labels, levels=levels, names=names) ``` A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you: http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports

```python

Your code here

```

Problem description

[this should explain why the current behavior is a problem and why the expected output is a better solution.]

Expected Output

Output of xr.show_versions()

INSTALLED VERSIONS

commit: None python: 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None libhdf5: None libnetcdf: None

xarray: 0.11.3 pandas: 0.24.1 numpy: 1.15.4 scipy: 1.2.0 netCDF4: None pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: None PseudonetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None cyordereddict: None dask: None distributed: None matplotlib: 3.0.2 cartopy: None seaborn: 0.9.0 setuptools: 40.6.3 pip: 18.1 conda: 4.6.7 pytest: None IPython: 7.2.0 sphinx: None

# Paste the output here xr.show_versions() here
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2798/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 397.703ms · About: xarray-datasette