diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 047c516c0..7c2f584c1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,6 +44,10 @@ jobs: python-version: "3.10" pandas: "pandas>1.1" numpy: "numpy" + - os: ubuntu-latest + python-version: "3.11" + pandas: "pandas>1.1" + numpy: "numpy" steps: - uses: actions/checkout@v3 diff --git a/setup.py b/setup.py index 9ea0b731f..70bba09a4 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ url="https://github.com/ydataai/ydata-profiling", license="MIT", description="Generate profile report for pandas DataFrame", - python_requires=">=3.7, <3.11", + python_requires=">=3.7, <3.12", install_requires=requirements, extras_require={ "notebook": [ diff --git a/src/ydata_profiling/model/correlations.py b/src/ydata_profiling/model/correlations.py index 83ad8af29..ea2bf759e 100644 --- a/src/ydata_profiling/model/correlations.py +++ b/src/ydata_profiling/model/correlations.py @@ -7,12 +7,11 @@ from multimethod import multimethod from ydata_profiling.config import Settings -from ydata_profiling.utils.compat import pandas_version_info -if pandas_version_info() >= (1, 5): - from pandas.errors import DataError -else: +try: from pandas.core.base import DataError +except ImportError: + from pandas.errors import DataError class Correlation: diff --git a/src/ydata_profiling/report/presentation/core/dropdown.py b/src/ydata_profiling/report/presentation/core/dropdown.py index dfe05b050..c1c2f274e 100644 --- a/src/ydata_profiling/report/presentation/core/dropdown.py +++ b/src/ydata_profiling/report/presentation/core/dropdown.py @@ -7,7 +7,15 @@ class Dropdown(ItemRenderer): def __init__( - self, name: str, id: str, items: list, item: Container, anchor_id: str, classes: list, is_row: bool, **kwargs + self, + name: str, + id: str, + items: list, + item: Container, + anchor_id: str, + classes: list, + is_row: bool, + **kwargs ): super().__init__( "dropdown",