diff --git a/.github/workflows/Python-check.yaml b/.github/workflows/Python-check.yaml index d64a6f9f..72b15fdd 100644 --- a/.github/workflows/Python-check.yaml +++ b/.github/workflows/Python-check.yaml @@ -37,7 +37,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip + python -m pip install --upgrade pip setuptools pip install tox==3.28.0 tox-gh-actions==2.12.0 - name: Test with tox run: tox diff --git a/python/dalex/dalex/predict_explanations/_ceteris_paribus/utils.py b/python/dalex/dalex/predict_explanations/_ceteris_paribus/utils.py index a6403d33..86d48530 100644 --- a/python/dalex/dalex/predict_explanations/_ceteris_paribus/utils.py +++ b/python/dalex/dalex/predict_explanations/_ceteris_paribus/utils.py @@ -1,5 +1,4 @@ import multiprocessing as mp -from distutils.version import LooseVersion import numpy as np import pandas as pd @@ -74,11 +73,8 @@ def calculate_variable_profile(predict_function, profiles = pd.concat(profile) # convert the variable types - if LooseVersion(pd.__version__) >= LooseVersion('1.2.0'): - # convert_floating=False since pandas v1.2 seem to have issues - profiles.loc[:, list(variable_splits)] = profiles.loc[:, list(variable_splits)].convert_dtypes(convert_floating=False) - else: - profiles.loc[:, list(variable_splits)] = profiles.loc[:, list(variable_splits)].convert_dtypes() + # convert_floating=False since pandas v1.2 seem to have issues + profiles.loc[:, list(variable_splits)] = profiles.loc[:, list(variable_splits)].convert_dtypes(convert_floating=False) return profiles diff --git a/python/dalex/setup.py b/python/dalex/setup.py index c4ea08c9..d023d2cd 100644 --- a/python/dalex/setup.py +++ b/python/dalex/setup.py @@ -74,6 +74,7 @@ def run_setup(): "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "License :: OSI Approved", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent",