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'])
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 OutputOutput of
|
{ "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 |