AttributeError Traceback (most recent call last)
Cell In[34], line 2422 get_ipython().system('pip install numba==0.58.1')
23 import numba as nb
---> 24 import pandas_profiling # library for automatic EDA
27 from scipy import stats # statistical library
28 from statsmodels.stats.weightstats import ztest # statistical function for hypothesis testing
File c:\Users\Client\anaconda3\Lib\site-packages\pandas_profiling__init.py:6
1 """Main module of pandas-profiling.
[2](file:///C:/Users/Client/anaconda3/Lib/site-packages/pandas_profiling/init.py:2)
3 .. include:: ../../README.md
[4](file:///C:/Users/Client/anaconda3/Lib/site-packages/pandas_profiling/init.py:4) """
----> 6 from pandas_profiling.controller import pandas_decorator
[7](file:///C:/Users/Client/anaconda3/Lib/site-packages/pandas_profiling/init.py:7) from pandas_profiling.profile_report import ProfileReport
8 from pandas_profiling.version import version__
File c:\Users\Client\anaconda3\Lib\site-packages\pandas_profiling\controller\pandas_decorator.py:4
1 """This file add the decorator on the DataFrame object."""
2 from pandas import DataFrame
----> 4 from pandas_profiling.profile_report import ProfileReport
7 def profile_report(df: DataFrame, **kwargs) -> ProfileReport:
8 """Profile a DataFrame.
910 Args:
(...)
15 A ProfileReport of the DataFrame.
16 """
File c:\Users\Client\anaconda3\Lib\site-packages\pandas_profiling\profile_report.py:11
9 import yaml
10 from tqdm.auto import tqdm
---> 11 from visions import VisionsTypeset
13 from pandas_profiling.config import Config, Settings
14 from pandas_profiling.expectations_report import ExpectationsReport
File c:\Users\Client\anaconda3\Lib\site-packages\visions__init.py:4
[1](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/init.py:1) """Core functionality"""
[3](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/init.py:3) from visions import types, typesets, utils
----> [4](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/init.py:4) from visions.backends import *
[5](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/init.py:5) from visions.declarative import create_type
6 from visions.functional import (
7 cast_to_detected,
8 cast_to_inferred,
9 detect_type,
[10](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/init__.py:10) infer_type,
11 )
File c:\Users\Client\anaconda3\Lib\site-packages\visions\backends__init.py:9
[6](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/init.py:6) try:
[7](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/init.py:7) import pandas as pd
----> [9](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/init.py:9) import visions.backends.pandas
[10](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/init.py:10) from visions.backends.pandas.test_utils import pandas_version
[12](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/init__.py:12) if pandas_version[0] < 1:
File c:\Users\Client\anaconda3\Lib\site-packages\visions\backends\pandas\types\complex.py:7
5 from visions.backends.pandas.series_utils import series_not_empty, series_not_sparse
6 from visions.backends.pandas.types.float import string_is_float
----> 7 from visions.backends.shared.parallelization_engines import pandas_apply
8 from visions.types.complex import Complex
9 from visions.types.string import String
File c:\Users\Client\anaconda3\Lib\site-packages\visions\backends\shared__init.py:[1](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/shared/init__.py:1)
----> 1 from . import nan_handling, parallelization_engines, utilities
File c:\Users\Client\anaconda3\Lib\site-packages\visions\backends\shared\nan_handling.py:34
30 # TODO: There are optimizations here, just have to define precisely the desired missing ruleset in the
31 # generated jit
32 if has_numba:
---> 34 @nb.generated_jit(nopython=True)
35 def is_missing(x):
36 """
37 Return True if the value is missing, False otherwise.
38 """
39 if isinstance(x, nb.types.Float):
AttributeError: module 'numba' has no attribute 'generated_jit'
Current Behaviour
AttributeError Traceback (most recent call last) Cell In[34], line 24 22 get_ipython().system('pip install numba==0.58.1') 23 import numba as nb ---> 24 import pandas_profiling # library for automatic EDA 27 from scipy import stats # statistical library 28 from statsmodels.stats.weightstats import ztest # statistical function for hypothesis testing
File c:\Users\Client\anaconda3\Lib\site-packages\pandas_profiling__init.py:6 1 """Main module of pandas-profiling. [2](file:///C:/Users/Client/anaconda3/Lib/site-packages/pandas_profiling/init.py:2) 3 .. include:: ../../README.md [4](file:///C:/Users/Client/anaconda3/Lib/site-packages/pandas_profiling/init.py:4) """ ----> 6 from pandas_profiling.controller import pandas_decorator [7](file:///C:/Users/Client/anaconda3/Lib/site-packages/pandas_profiling/init.py:7) from pandas_profiling.profile_report import ProfileReport 8 from pandas_profiling.version import version__
File c:\Users\Client\anaconda3\Lib\site-packages\pandas_profiling\controller\pandas_decorator.py:4 1 """This file add the decorator on the DataFrame object.""" 2 from pandas import DataFrame ----> 4 from pandas_profiling.profile_report import ProfileReport 7 def profile_report(df: DataFrame, **kwargs) -> ProfileReport: 8 """Profile a DataFrame. 9 10 Args: (...) 15 A ProfileReport of the DataFrame. 16 """
File c:\Users\Client\anaconda3\Lib\site-packages\pandas_profiling\profile_report.py:11 9 import yaml 10 from tqdm.auto import tqdm ---> 11 from visions import VisionsTypeset 13 from pandas_profiling.config import Config, Settings 14 from pandas_profiling.expectations_report import ExpectationsReport
File c:\Users\Client\anaconda3\Lib\site-packages\visions__init.py:4 [1](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/init.py:1) """Core functionality""" [3](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/init.py:3) from visions import types, typesets, utils ----> [4](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/init.py:4) from visions.backends import * [5](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/init.py:5) from visions.declarative import create_type 6 from visions.functional import ( 7 cast_to_detected, 8 cast_to_inferred, 9 detect_type, [10](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/init__.py:10) infer_type, 11 )
File c:\Users\Client\anaconda3\Lib\site-packages\visions\backends__init.py:9 [6](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/init.py:6) try: [7](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/init.py:7) import pandas as pd ----> [9](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/init.py:9) import visions.backends.pandas [10](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/init.py:10) from visions.backends.pandas.test_utils import pandas_version [12](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/init__.py:12) if pandas_version[0] < 1:
File c:\Users\Client\anaconda3\Lib\site-packages\visions\backends\pandas__init.py:2 [1](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/pandas/init.py:1) import visions.backends.pandas.traversal ----> [2](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/pandas/init__.py:2) import visions.backends.pandas.types
File c:\Users\Client\anaconda3\Lib\site-packages\visions\backends\pandas\types__init.py:3 [1](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/pandas/types/init.py:1) import visions.backends.pandas.types.boolean [2](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/pandas/types/init.py:2) import visions.backends.pandas.types.categorical ----> [3](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/pandas/types/init.py:3) import visions.backends.pandas.types.complex [4](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/pandas/types/init.py:4) import visions.backends.pandas.types.count [5](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/pandas/types/init__.py:5) import visions.backends.pandas.types.date
File c:\Users\Client\anaconda3\Lib\site-packages\visions\backends\pandas\types\complex.py:7 5 from visions.backends.pandas.series_utils import series_not_empty, series_not_sparse 6 from visions.backends.pandas.types.float import string_is_float ----> 7 from visions.backends.shared.parallelization_engines import pandas_apply 8 from visions.types.complex import Complex 9 from visions.types.string import String
File c:\Users\Client\anaconda3\Lib\site-packages\visions\backends\shared__init.py:[1](file:///C:/Users/Client/anaconda3/Lib/site-packages/visions/backends/shared/init__.py:1) ----> 1 from . import nan_handling, parallelization_engines, utilities
File c:\Users\Client\anaconda3\Lib\site-packages\visions\backends\shared\nan_handling.py:34 30 # TODO: There are optimizations here, just have to define precisely the desired missing ruleset in the 31 # generated jit 32 if has_numba: ---> 34 @nb.generated_jit(nopython=True) 35 def is_missing(x): 36 """ 37 Return True if the value is missing, False otherwise. 38 """ 39 if isinstance(x, nb.types.Float):
AttributeError: module 'numba' has no attribute 'generated_jit'
Expected Behaviour
can't use it
import pandas_profiling
Data Description
can't use it
import pandas_profiling
Code that reproduces the bug
pandas-profiling version
v3.2.0
Dependencies
OS
Windows 11
Checklist