WORKING WITH SWEETVIZ
SweetViz is an open-source Python module that generates remarkably detailed visualizations in the form of HTML Web pages based on literally five lines of Python code.
As an illustration of the preceding statement, Listing 5.26 shows the contents of sweetviz1.py that generates a visualization of various aspects of the Iris dataset that is available in Scikit-learn.
Listing 5.26: sweetviz1.py
import sweetviz as sv
import seaborn as sns
df = sns.load_dataset('iris')
report = sv.analyze(df)
report.show_html()
Listing 5.26 starts with two import statements, followed by an initialization of the variable df with the contents of the Iris dataset. The next code snippet initializes the variable report as the result of invoking the analyze() method in SweetViz, followed by a code snippet that generates an HTML Web page with the result of the analysis.

FIGURE 5.18 An analysis of the Iris dataset.
Launch the code from the command line and you will see a new HTML...