sweetviz
A pandas-based library to visualize and compare datasets.
What it is and what it does
Sweetviz is a pandas-based Python library that automates exploratory data analysis by generating self-contained, interactive HTML reports from dataframes. It detects feature types automatically (numerical, categorical, text), computes summary statistics and associations, and visualizes relationships between features and optional target variables. The library is designed around two main workflows: analyzing a single dataset with an optional target feature, and comparing two datasets (e.g., training vs. test splits) or subsets within a dataset (e.g., male vs. female rows).
The package handles mixed-type associations seamlessly—Pearson correlation for numerical features, uncertainty coefficient for categorical features, and correlation ratio for categorical-numerical pairs. Output is a fully self-contained HTML application that renders in a browser or notebook environment, making it useful for quick data characterization tasks without manual visualization code. It depends on standard scientific Python libraries (pandas, numpy, scipy, matplotlib) and template rendering (jinja2).
Use it for:
- Generate a quick summary report of a new dataset to understand distributions, missing values, and feature types without writing custom code.
- Compare training and test datasets side-by-side to identify data drift or distribution mismatches before model training.
- Analyze how a target variable (e.g., loan default, customer churn) relates to other features to guide feature engineering.
- Visualize correlations and associations across mixed data types to identify potential multicollinearity or feature interactions.
- Create an interactive HTML report for stakeholders to explore data characteristics without requiring Python knowledge.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Sweetviz generates interactive HTML visualizations for exploratory data analysis (EDA) in two lines of code, supporting target analysis, dataset comparison, and correlation detection across numerical, categorical, and mixed-type features.
Yes. Sweetviz is actively maintained, permissively licensed, has low install friction, and solves a common pain point in data science workflows. It is well-suited for rapid EDA when you need quick visual summaries of datasets and their relationships. Install it if you work regularly with pandas dataframes and want to reduce boilerplate visualization code; skip it if you need fine-grained control over plot aesthetics or work primarily in restricted environments.
Install
sweetviz on PyPI
pip
pip install sweetvizuv
uv add sweetvizpoetry
poetry add sweetvizInstalling sweetviz
Before you install
Low install friction with a wheel distribution and eight common dependencies (pandas, numpy, matplotlib, scipy, jinja2, tqdm, and importlib utilities). Actively maintained as of April 2026 with recent bug fixes in version 2.3.2.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
import sweetviz as sv
import pandas as pd
df = pd.read_csv('data.csv')
my_report = sv.analyze(df)
my_report.show_html()
Requires pandas 0.25.3 or later and Python 3.7+; custom file operations in restricted environments like Google Colab may not be fully supported.
Verify before relying
- Whether version 2.3.3 resolves all long-standing issues mentioned in the April 2026 update beyond what 2.3.2 addressed.
- Current status of Google Colab and other restricted-environment support mentioned as 'looking into a solution'.
- Performance characteristics for datasets with very large feature counts relative to the association_auto_threshold parameter.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — pandas, numpy, matplotlib, tqdm, scipy, jinja2, importlib_resources, importlib_metadata |
| Maintenance | actively maintained — 125 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 207,279/month — #9,556 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sweetviz-2.3.3-py3-none-any.whl
Keywords: pandas, data-science, data-analysis, python, eda
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
ydata-profilingGenerates comprehensive exploratory data…
permissive · top 5,000 on PyPI
pandas-profilingThis package is deprecated; it redirects users…
permissive · top 15,000 on PyPI
dtaleD-Tale is a Flask-backed web interface for…
copyleft · top 15,000 on PyPI
facets-overviewGenerates summary statistics for dataset…
permissive · top 15,000 on PyPI
arviz-plotsarviz-plots provides visualization functions…
permissive · top 15,000 on PyPI
giddyGiddy provides methods for exploratory…
permissive · top 15,000 on PyPI
missingnoVisualizes missing data patterns in DataFrames…
permissive · top 15,000 on PyPI
visionsVisions defines and detects semantic data types…
permissive · top 5,000 on PyPI
snakevizSnakeViz is a web-based viewer for Python…
permissive · top 5,000 on PyPI
percentifyPercentify provides one-call exploratory…
permissive · top 15,000 on PyPI