diff --git a/json_tricks/encoders.py b/json_tricks/encoders.py
index 3082a8f..f6573da 100644
--- a/json_tricks/encoders.py
+++ b/json_tricks/encoders.py
@@ -316,7 +316,7 @@ def pandas_encode(obj, primitives=False):
 			))
 		repr['index'] = tuple(obj.index.values)
 		for k, name in enumerate(obj.columns.values):
-			repr[name] = tuple(obj.ix[:, k].values)
+			repr[name] = tuple(obj.iloc[:, k].values)
 		return repr
 	if isinstance(obj, Series):
 		repr = hashodict()

Pandas DeprecationWarning: .ix is deprecated
diff --git a/tests/test_pandas.py b/tests/test_pandas.py
index 4f4a89e..5c3d19c 100644
--- a/tests/test_pandas.py
+++ b/tests/test_pandas.py
@@ -24,7 +24,7 @@ def test_pandas_dataframe():
 	df = DataFrame(COLUMNS, columns=tuple(COLUMNS.keys()))
 	txt = dumps(df, allow_nan=True)
 	back = loads(txt)
-	assert isnan(back.ix[0, -1])
+	assert isnan(back.iloc[0, -1])
 	assert (df.equals(back))
 	assert (df.dtypes == back.dtypes).all()
 	df = DataFrame(COLUMNS, columns=tuple(COLUMNS.keys()))

pip install -e .[dev]
parse_log_pytest
pytest
numpy>=1.16.0 pandas>=1.0.0 pytz enum34 pytest
apt-get update apt-get install -y gcc
3.9
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
enum34==1.1.10
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
-e git+https://github.com/mverleg/pyjson_tricks.git@7a309c9dfaf2a43987e5b580fbb30290e4d4f149#egg=json_tricks
numpy==2.0.2
packaging @ file:///croot/packaging_1734472117206/work
pandas==2.2.3
pluggy @ file:///croot/pluggy_1733169602837/work
pytest @ file:///croot/pytest_1738938843180/work
python-dateutil==2.9.0.post0
pytz==2025.2
six==1.17.0
tomli @ file:///opt/conda/conda-bld/tomli_1657175507142/work
tzdata==2025.2

name: pyjson_tricks
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - exceptiongroup=1.2.0=py39h06a4308_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - packaging=24.2=py39h06a4308_0
  - pip=25.0=py39h06a4308_0
  - pluggy=1.5.0=py39h06a4308_0
  - pytest=8.3.4=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tomli=2.0.1=py39h06a4308_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - enum34==1.1.10
      - numpy==2.0.2
      - pandas==2.2.3
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - six==1.17.0
      - tzdata==2025.2
prefix: /opt/conda/envs/pyjson_tricks

tests/test_pandas.py::test_pandas_dataframe tests/test_pandas.py::test_pandas_mixed_with_other_types
tests/test_pandas.py::test_pandas_series
json_tricks/encoders.py
json_tricks/encoders.py