Registry / data / sweetviz

sweetviz

JSON →
library2.3.3pypypi✓ verified 85d ago

A pandas-based library to visualize and compare datasets, providing an automated EDA report in HTML. Current version is 2.3.3, with releases about quarterly.

pip install sweetviz
INSTALL
IMPORT
SIG · SWEETVIZ
S
sweetviz
datapythonv2.3.3
Install
16.4s avg
Import
5973ms
Disk
416MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.3.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 6.032s · 413.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 16.4s · import 5.914s · 397MB
416MB installed
● package 416MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sweetviz
import sweetviz
from sweetviz import *
Module-wide import is standard; star imports are discouraged and may cause namespace pollution.

Generate an EDA report for the Iris dataset, targeting the 'species' column.

import pandas as pd import sweetviz as sv df = pd.read_csv('https://raw.githubusercontent.com/fbdesignpro/sweetviz/master/datasets/iris.csv') report = sv.analyze(df, target_feat='species') report.show_html('sweetviz_report.html')
Debug
Known issues
breakingIn v2.2.1, incompatibilities with Pandas 2.0+ and numpy 1.24+ were fixed. Upgrade from older versions (<2.2.1) may break if using newer pandas.
fix
Upgrade to sweetviz >=2.2.1.
affects: <2.2.1
deprecatedThe 'distutils' import was removed in v2.3.2; earlier versions may cause ImportError in Python 3.12+ where distutils is removed.
fix
Update sweetviz to >=2.3.2.
affects: <2.3.2
gotchaWhen using compare() or compare_intra(), the target feature must exist in both dataframes. Missing columns cause silent incorrect reports.
fix
Ensure all required columns are present in both datasets before comparison.
affects: all
gotchaLarge datasets (>100k rows) may cause high memory usage; the library loads the entire dataframe into memory and creates a large HTML report.
fix
Sample your data or use the 'verbosity' parameter (v2.3.0+) to limit detail. For massive datasets, consider alternatives like ydata-profiling.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'sweetviz'
Sweetviz is not installed in the current Python environment.
fix
Run `pip install sweetviz`.
ImportError: cannot import name 'is_categorical_dtype' from 'pandas.api.types'
In older sweetviz (<2.3.0) with newer pandas versions, the import path changed.
fix
Upgrade sweetviz to >=2.3.0.
AttributeError: module 'numpy' has no attribute 'bool'
Sweetviz versions <2.3.2 used deprecated numpy aliases removed in numpy 1.24+.
fix
Upgrade sweetviz to >=2.3.2.
ValueError: The truth value of a DataFrame is ambiguous
Passing a pandas DataFrame where a Series is expected, e.g., using analyze() with a multi-column target feature.
fix
Ensure target_feat is a single column name (string), not a list or DataFrame.
Upgrade
Version history
2.3.3latest on PyPI · released Apr 11, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
sweetviz — pip install sweetviz · libregistry