fbdesignpro / sweetviz

Visualize and compare datasets, target values and associations, with one line of code.
MIT License
2.96k stars 278 forks source link

cant create HTML report #94

Open geoHeil opened 3 years ago

geoHeil commented 3 years ago

When trying to create an HTML report for the computed dataframe analysis an error is created during the creation of the HTML file:

my_report = sv.compare_intra(df_viz, df_viz["key"] == 0, ["normal", "anomaly"])
my_report.show_html()
--------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-11-a72fccb99362> in <module>
----> 1 my_report.show_html()

path/to/file/lib/python3.8/site-packages/sweetviz/dataframe_report.py in show_html(self, filepath, open_browser, layout, scale)
    522         sv_html.set_summary_positions(self)
    523         sv_html.generate_html_detail(self)
--> 524         if self.associations_html_source:
    525             self.associations_html_source = sv_html.generate_html_associations(self, "source")
    526         if self.associations_html_compare:

AttributeError: 'DataframeReport' object has no attribute 'associations_html_source'
fbdesignpro commented 3 years ago

Thank you for the report @geoHeil! I think this could be legit edge case issue. Are you still running into this? If so, I would love for you to test an update I will try to get in by the end of the week.

HWiese1980 commented 3 years ago

I am running into this now. What's the status?

HWiese1980 commented 3 years ago

It's caused when a large number of features are auto-pairwise analyzed and show_html is subsequently called despite the warning of exponential time consumption and the pre-mature return, because in that case associations_html_source is never initialized on DataFrameReport.

mithrandir184 commented 2 years ago

Is there any update on this? I am also getting the error