Closed lee1043 closed 11 months ago
According to the pandas doc, parameter method
is deprecated since pandas version 1.4. Suggested alternative is to use index.get_indexer([item], method=…) instead.
https://pandas.pydata.org/pandas-docs/version/1.5/reference/api/pandas.Index.get_loc.html
I noticed that my xarray version (2022.11.0) is outdated, which was limited by python 3.8 in my env. With updating python to 3.9 and xarray to 2023.10.1, issue is gone. I am closing this issue because it was a user error.
What happened?
I am getting error from simple time subsetting.
What did you expect to happen? Are there are possible answers you came across?
No response
Minimal Complete Verifiable Example (MVCE)
Relevant log output
Anything else we need to know?
No response
Environment
INSTALLED VERSIONS
commit: None python: 3.8.18 | packaged by conda-forge | (default, Oct 10 2023, 15:44:36) [GCC 12.3.0] python-bits: 64 OS: Linux OS-release: 3.10.0-1160.71.1.el7.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: ('en_US', 'UTF-8') libhdf5: 1.14.0 libnetcdf: 4.9.2
xarray: 2022.11.0 pandas: 2.0.3 numpy: 1.22.4 scipy: 1.10.1 netCDF4: 1.6.4 pydap: None h5netcdf: None h5py: 3.9.0 Nio: None zarr: None cftime: 1.6.2 nc_time_axis: None PseudoNetCDF: None rasterio: 1.3.7 cfgrib: None iris: None bottleneck: None dask: 2023.5.0 distributed: 2023.5.0 matplotlib: 3.7.3 cartopy: 0.21.1 seaborn: 0.13.0 numbagg: None fsspec: 2023.9.2 cupy: None pint: None sparse: None flox: None numpy_groupies: None setuptools: 68.2.2 pip: 23.3 conda: None pytest: None IPython: 8.12.2 sphinx: None
$ mamba list xcdat
packages in environment at /home/lee1043/.conda/envs/blocking_20231017:
#
Name Version Build Channel
xcdat 0.6.0 pypi_0 pypi