issues: 1411125069
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1411125069 | I_kwDOAMm_X85UHA9N | 7177 | xarray throws FutureWarning when using .interp method | 12728107 | closed | 0 | 2 | 2022-10-17T08:21:42Z | 2022-10-17T09:18:07Z | 2022-10-17T09:18:07Z | NONE | What happened?I get a FutureWarning when using the .interp method on an xarray.DataArray The issue is probably related to #6625, #5721 and #6195. Steps to reproduce
Expected outputNothing Actual outputC:\Miniconda3\envs\test\lib\site-packages\xarray\core\missing.py:562: FutureWarning: Passing method to Int64Index.get_loc is deprecated and will raise in a future version. Use index.get_indexer([item], method=...) instead. imin = index.get_loc(minval, method="nearest") C:\Miniconda3\envs\test\lib\site-packages\xarray\core\missing.py:563: FutureWarning: Passing method to Int64Index.get_loc is deprecated and will raise in a future version. Use index.get_indexer([item], method=...) instead. imax = index.get_loc(maxval, method="nearest") What did you expect to happen?I expected no warning Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?No response Environment
```
C:\Miniconda3\envs\test\lib\site-packages\_distutils_hack\__init__.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
INSTALLED VERSIONS
------------------
commit: None
python: 3.10.6 | packaged by conda-forge | (main, Oct 7 2022, 20:14:50) [MSC v.1916 64 bit (AMD64)]
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: ('Norwegian Bokmål_Norway', '1252')
libhdf5: None
libnetcdf: None
xarray: 0.20.1
pandas: 1.4.4
numpy: 1.23.1
scipy: 1.9.1
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: 1.3.5
dask: None
distributed: None
matplotlib: None
cartopy: None
seaborn: None
numbagg: None
fsspec: None
cupy: None
pint: None
sparse: None
setuptools: 63.4.1
pip: 22.2.2
conda: None
pytest: None
IPython: None
sphinx: None
```
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/7177/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |