Skip to content

Commit

Permalink
feat: support for Python 3.11 (#1273)
Browse files Browse the repository at this point in the history
* feat: support for Python 3.11

* fix: type the exception, remove useless import

* [skip ci] Code formatting

---------

Co-authored-by: Azory YData Bot <[email protected]>
  • Loading branch information
aquemy and azory-ydata authored Mar 2, 2023
1 parent 468b47d commit b9ada64
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
7 changes: 3 additions & 4 deletions src/ydata_profiling/model/correlations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 9 additions & 1 deletion src/ydata_profiling/report/presentation/core/dropdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b9ada64

Please sign in to comment.