Skip to content

Commit 3a16f0f

Browse files
Merge pull request #62 from MAIF/fix/warnings
warning fix; pandas>=2 ; support of python 3.11;support drop python 3.8 github action updated for pyproject.toml
2 parents eaba28e + bb7be1f commit 3a16f0f

File tree

7 files changed

+708
-95
lines changed

7 files changed

+708
-95
lines changed

.github/workflows/main.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,35 @@ jobs:
88
strategy:
99
max-parallel: 1
1010
matrix:
11-
python-version: ["3.8", "3.9", "3.10"]
11+
python-version: ["3.9", "3.10", "3.11"]
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Set up Python ${{ matrix.python-version }}
1515
uses: actions/setup-python@v2
1616
with:
1717
python-version: ${{ matrix.python-version }}
18+
1819
- name: Install dependencies
1920
run: |
20-
python -m pip install --upgrade pip wheel setuptools
21-
pip install flake8 pytest
21+
python -m pip install --upgrade pip
22+
pip install build flake8 pytest
2223
if [ -f requirements.dev.txt ]; then pip install -r requirements.dev.txt; fi
24+
2325
- name: Lint with flake8
2426
run: |
2527
# stop the build if there are Python syntax errors or undefined names
2628
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
2729
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
2830
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31+
2932
- name: Test with pytest
3033
run: |
3134
python -m pytest
35+
3236
- name: Build python package
3337
run: |
34-
python setup.py sdist bdist_wheel
38+
python -m build
39+
3540
- name: Deploy to PyPI
3641
if: success() && startsWith(github.ref, 'refs/tags') && matrix.python-version == '3.10'
3742
uses: pypa/gh-action-pypi-publish@master

.readthedocs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ build:
2424

2525
# Optionally set the version of Python and requirements required to build your docs
2626
python:
27-
install:
28-
- requirements: requirements.dev.txt
27+
install:
28+
- requirements: requirements.dev.txt

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ sd.generate_report(
107107

108108
## 🛠 Installation
109109

110-
Eurybia is intended to work with Python versions 3.8 to 3.10. Installation can be done with pip:
110+
Eurybia is intended to work with Python versions 3.9 to 3.11. Installation can be done with pip:
111111

112112
```
113113
pip install eurybia

eurybia/core/smartplotter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def generate_fig_univariate_continuous(
145145
-------
146146
plotly.graph_objs._figure.Figure
147147
"""
148-
df_all.loc[:, col].fillna(0, inplace=True)
148+
df_all[col] = df_all[col].fillna(0)
149149
datasets = [df_all[df_all[hue] == val][col].values.tolist() for val in df_all[hue].unique()]
150150
group_labels = [str(val) for val in df_all[hue].unique()]
151151
colors = list(self._style_dict["univariate_cont_bar"].values())

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ authors = [
1212
]
1313
description = "Eurybia monitor model drift over time and securize model deployment with data validation"
1414
readme = "README.md"
15-
requires-python = ">=3.8"
15+
requires-python = ">=3.9"
1616
license = {text = "Apache Software License 2.0"}
1717
classifiers = [
1818
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
2222
"License :: OSI Approved :: Apache Software License",
2323
"Operating System :: OS Independent",
2424
]
2525
dependencies = [
26-
"pandas",
26+
"pandas>=2",
2727
"catboost>=1.0.1",
2828
"panel>=1.4.1",
2929
"ipywidgets>=7.4.2",

requirements.dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ catboost>=1.0.1
33
category-encoders>=2.6.0
44
lightgbm>=2.3.1
55
numpy>=1.18.0
6-
pandas
6+
pandas>=2
77
plotly>=4.12.0
88
shapash>=2.0.0
99
Sphinx==4.5.0

0 commit comments

Comments
 (0)