File tree 3 files changed +4
-7
lines changed
dalex/predict_explanations/_ceteris_paribus
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 37
37
python-version : ${{ matrix.python-version }}
38
38
- name : Install dependencies
39
39
run : |
40
- python -m pip install --upgrade pip
40
+ python -m pip install --upgrade pip setuptools
41
41
pip install tox==3.28.0 tox-gh-actions==2.12.0
42
42
- name : Test with tox
43
43
run : tox
Original file line number Diff line number Diff line change 1
1
import multiprocessing as mp
2
- from distutils .version import LooseVersion
3
2
4
3
import numpy as np
5
4
import pandas as pd
@@ -74,11 +73,8 @@ def calculate_variable_profile(predict_function,
74
73
75
74
profiles = pd .concat (profile )
76
75
# 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 )
82
78
83
79
return profiles
84
80
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ def run_setup():
74
74
"Programming Language :: Python :: 3.9" ,
75
75
"Programming Language :: Python :: 3.10" ,
76
76
"Programming Language :: Python :: 3.11" ,
77
+ "Programming Language :: Python :: 3.12" ,
77
78
"License :: OSI Approved" ,
78
79
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)" ,
79
80
"Operating System :: OS Independent" ,
You can’t perform that action at this time.
0 commit comments