Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eda multiple errors #62

Open
miguelfs opened this issue Nov 28, 2024 · 0 comments
Open

eda multiple errors #62

miguelfs opened this issue Nov 28, 2024 · 0 comments

Comments

@miguelfs
Copy link

miguelfs commented Nov 28, 2024

Hi, I followed the steps in the documentation, but I am struggling with some errors.

  1. The ipynb says it doesnt have installed the pandas_profilling library

image

  1. Then, I installed directly through pip, but now it returns ModuleNotFoundError: No module named 'ipywidgets' error:
Summarize dataset:  78%|████████████████████████████████████████▋           | 18[/23](http://localhost:8935/23) [00:00<00:00, 25.00it[/s](http://localhost:8935/s), Calculate auto correlation][/Users/miguel/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/model/correlations.py:66](http://localhost:8935/Users/miguel/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/model/correlations.py#line=65): UserWarning: There was an attempt to calculate the auto correlation, but this failed.
To hide this warning, disable the calculation
(using `df.profile_report(correlations={"auto": {"calculate": False}})`
If this is problematic for your use case, please report this as an issue:
https://github.com/ydataai/ydata-profiling/issues
(include the error message: 'Function <code object pandas_auto_compute at 0x14743f680, file "/Users/miguel/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/model/pandas/correlations_pandas.py", line 167>')
  warnings.warn(
Summarize dataset: 100%|███████████████████████████████████████████████████████████████████| 126[/126](http://localhost:8935/126) [00:07<00:00, 15.82it[/s](http://localhost:8935/s), Completed]
Generate report structure: 100%|██████████████████████████████████████████████████████████████████████████| 1[/1](http://localhost:8935/1) [00:04<00:00,  4.34s[/it](http://localhost:8935/it)]
                                                                                                                                        
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[8], line 3
      1 import ydata_profiling
      2 profile = ydata_profiling.ProfileReport(df)
----> 3 profile.to_widgets()

File [~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/profile_report.py:537](http://localhost:8935/lab/tree/~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/profile_report.py#line=536), in ProfileReport.to_widgets(self)
    533     pass
    535 from IPython.core.display import display
--> 537 display(self.widgets)

File [~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/profile_report.py:307](http://localhost:8935/lab/tree/~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/profile_report.py#line=306), in ProfileReport.widgets(self)
    302     raise RuntimeError(
    303         "Widgets interface not (yet) supported for comparing reports, please use the HTML rendering."
    304     )
    306 if self._widgets is None:
--> 307     self._widgets = self._render_widgets()
    308 return self._widgets

File [~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/profile_report.py:440](http://localhost:8935/lab/tree/~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/profile_report.py#line=439), in ProfileReport._render_widgets(self)
    432 report = self.report
    434 with tqdm(
    435     total=1,
    436     desc="Render widgets",
    437     disable=not self.config.progress_bar,
    438     leave=False,
    439 ) as pbar:
--> 440     widgets = WidgetReport(copy.deepcopy(report)).render()
    441     pbar.update()
    442 return widgets

File [~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/report/presentation/flavours/flavours.py:151](http://localhost:8935/lab/tree/~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/report/presentation/flavours/flavours.py#line=150), in WidgetReport(structure)
    150 def WidgetReport(structure: Root) -> Root:
--> 151     mapping = get_widget_renderable_mapping()
    152     apply_renderable_mapping(mapping, structure, flavour=WidgetReport)
    153     return structure

File [~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/report/presentation/flavours/flavours.py:111](http://localhost:8935/lab/tree/~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/report/presentation/flavours/flavours.py#line=110), in get_widget_renderable_mapping()
     92 def get_widget_renderable_mapping() -> Dict[Type[Renderable], Type[Renderable]]:
     93     from ydata_profiling.report.presentation.core import (
     94         HTML,
     95         Alerts,
   (...)
    109         VariableInfo,
    110     )
--> 111     from ydata_profiling.report.presentation.flavours.widget import (
    112         WidgetAlerts,
    113         WidgetCollapse,
    114         WidgetContainer,
    115         WidgetCorrelationTable,
    116         WidgetDropdown,
    117         WidgetDuplicate,
    118         WidgetFrequencyTable,
    119         WidgetFrequencyTableSmall,
    120         WidgetHTML,
    121         WidgetImage,
    122         WidgetRoot,
    123         WidgetSample,
    124         WidgetTable,
    125         WidgetToggleButton,
    126         WidgetVariable,
    127         WidgetVariableInfo,
    128     )
    130     return {
    131         Container: WidgetContainer,
    132         Variable: WidgetVariable,
   (...)
    146         CorrelationTable: WidgetCorrelationTable,
    147     }

File [~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/report/presentation/flavours/widget/__init__.py:1](http://localhost:8935/lab/tree/~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/report/presentation/flavours/widget/__init__.py#line=0)
----> 1 from ydata_profiling.report.presentation.flavours.widget.alerts import WidgetAlerts
      2 from ydata_profiling.report.presentation.flavours.widget.collapse import WidgetCollapse
      3 from ydata_profiling.report.presentation.flavours.widget.container import (
      4     WidgetContainer,
      5 )

File [~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/report/presentation/flavours/widget/alerts.py:3](http://localhost:8935/lab/tree/~/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/report/presentation/flavours/widget/alerts.py#line=2)
      1 from typing import List
----> 3 from ipywidgets import HTML, Button, widgets
      5 from ydata_profiling.report.presentation.core import Alerts
      6 from ydata_profiling.report.presentation.flavours.html import templates

ModuleNotFoundError: No module named 'ipywidgets'
  1. Then, I ran pip install ipywidgets, the profling back again and it returned a broken widget for the profiling.
Summarize dataset:   0%|          | 0/5 [00:00<?, ?it/s]
[/Users/miguel/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/model/correlations.py:66](http://localhost:8935/Users/miguel/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/model/correlations.py#line=65): UserWarning: There was an attempt to calculate the auto correlation, but this failed.
To hide this warning, disable the calculation
(using `df.profile_report(correlations={"auto": {"calculate": False}})`
If this is problematic for your use case, please report this as an issue:
https://github.com/ydataai/ydata-profiling/issues
(include the error message: 'Function <code object pandas_auto_compute at 0x17b8550b0, file "/Users/miguel/anaconda3/envs/mlflow-e4fcefd643ef1ee947cfeff48521954cf08a16aa/lib/python3.10/site-packages/ydata_profiling/model/pandas/correlations_pandas.py", line 167>')
  warnings.warn(
Generate report structure:   0%|          | 0/1 [00:00<?, ?it/s]
Render widgets:   0%|          | 0/1 [00:00<?, ?it/s]
IOPub message rate exceeded.
The Jupyter server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--ServerApp.iopub_msg_rate_limit`.

Current values:
ServerApp.iopub_msg_rate_limit=1000.0 (msgs[/sec](http://localhost:8935/sec))
ServerApp.rate_limit_window=3.0 (secs)

Does anyone have a fixed version of this repository so I could fork?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant