Skip to content

Commit fc081a4

Browse files
committed
[python] try adding py312 to tests
1 parent 9269e3e commit fc081a4

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/Python-check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
python-version: ${{ matrix.python-version }}
3838
- name: Install dependencies
3939
run: |
40-
python -m pip install --upgrade pip
40+
python -m pip install --upgrade pip setuptools
4141
pip install tox==3.28.0 tox-gh-actions==2.12.0
4242
- name: Test with tox
4343
run: tox

python/dalex/dalex/predict_explanations/_ceteris_paribus/utils.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import multiprocessing as mp
2-
from distutils.version import LooseVersion
32

43
import numpy as np
54
import pandas as pd
@@ -74,11 +73,8 @@ def calculate_variable_profile(predict_function,
7473

7574
profiles = pd.concat(profile)
7675
# convert the variable types
77-
if LooseVersion(pd.__version__) >= LooseVersion('1.2.0'):
78-
# convert_floating=False since pandas v1.2 seem to have issues
79-
profiles.loc[:, list(variable_splits)] = profiles.loc[:, list(variable_splits)].convert_dtypes(convert_floating=False)
80-
else:
81-
profiles.loc[:, list(variable_splits)] = profiles.loc[:, list(variable_splits)].convert_dtypes()
76+
# convert_floating=False since pandas v1.2 seem to have issues
77+
profiles.loc[:, list(variable_splits)] = profiles.loc[:, list(variable_splits)].convert_dtypes(convert_floating=False)
8278

8379
return profiles
8480

python/dalex/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def run_setup():
7474
"Programming Language :: Python :: 3.9",
7575
"Programming Language :: Python :: 3.10",
7676
"Programming Language :: Python :: 3.11",
77+
"Programming Language :: Python :: 3.12",
7778
"License :: OSI Approved",
7879
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
7980
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)