Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Sweetviz turns a pandas DataFrame into a visual exploratory data analysis (EDA) report, with summaries, distributions, missing-value information, feature associations, and comparison tools. You can generate a first report with a few lines of Python, but the report is a screening tool—not a substitute for validating data, checking leakage, or interpreting results in context.
What Sweetviz does
Sweetviz is an open-source Python library for automated EDA on pandas DataFrames. Its main functions create a report for one dataset, compare two datasets, or compare two groups within one dataset. Reports can be saved as standalone HTML or embedded in a notebook. The project is MIT-licensed.
“EDA in seconds” describes how little code it takes to generate a report, not a guarantee about runtime or a claim that analysis is complete. Processing time depends on the data, its types, the machine, and report complexity.
PyPI has a version-specific page for Sweetviz 2.3.3, but the project description also refers to an April 2026 update for 2.3.2. Check the package index or installed package rather than assuming which version is latest:
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware match#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
python -m pip index versions sweetviz
python -m pip show sweetviz
PyPI metadata lists Python classifiers from 3.7 through 3.11, while older embedded project text says Python 3.6 or later and pandas 0.25.3 or later. Because those compatibility statements differ, test the release you install in your own environment instead of treating the older text as current guidance. See the Sweetviz 2.3.3 package page.
Install Sweetviz in an isolated environment
A virtual environment helps keep Sweetviz and its dependencies separate from other Python projects.
-
Create an environment:
python -m venv .venv -
Activate it on macOS or Linux:
source .venv/bin/activateIn Windows PowerShell, use:
.venvScriptsActivate.ps1 -
Install Sweetviz and pandas:
python -m pip install -U pip python -m pip install sweetviz pandas -
Confirm the imported package and version:
python -c "import sweetviz as sv; print(sv.__version__)"
The python -m pip form runs pip for the selected Python interpreter, reducing the chance of installing into a different environment.
Generate a report for one DataFrame
Load a CSV with pandas, pass the DataFrame to analyze(), then save the report with show_html():
import pandas as pd
import sweetviz as sv
df = pd.read_csv("data.csv")
report = sv.analyze(df)
report.show_html("sweetviz_report.html")
This writes sweetviz_report.html in the current working directory. Depending on the environment and display options, Sweetviz may also open it in a browser. The two-step pattern—create a report object, then render it—also applies to comparisons. The package documentation describes analyze(), compare(), compare_intra(), and the HTML and notebook display methods.
Focus the report on a target
For supervised-learning data, set target_feat to the exact name of a column in the DataFrame:
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
report = sv.analyze(df, target_feat="target")
report.show_html("target_report.html")
For example, a Titanic dataset with a Survived column can be analyzed with target_feat="Survived". Target analysis organizes the report around how the target varies with other features. It is descriptive: an apparent association does not establish causation, predictive value, or that the feature will be available and appropriate at prediction time.
Compare training and test data
Use compare() to inspect differences between two DataFrames. The optional target should be a column available in the data being compared:
train_df = pd.read_csv("train.csv")
test_df = pd.read_csv("test.csv")
report = sv.compare(
[train_df, "Training Data"],
[test_df, "Test Data"],
target_feat="target"
)
report.show_html("train_test_comparison.html")
Before comparing, check that the schemas are compatible. Differences in distributions, missingness, unique-value counts, summaries, associations, or target behavior can be useful signals to investigate. They do not by themselves prove a split is valid or invalid: differences may be intentional, and visual similarity does not guarantee production stability.
A static report also cannot reliably rule out temporal leakage, duplicated entities across splits, or label contamination. Those checks require knowledge of how the data was collected and how the model will be used.
Compare two groups in one dataset
compare_intra() splits a DataFrame using a Boolean condition. The first name labels rows where the condition is true; the second labels rows where it is false:
report = sv.compare_intra(
df,
df["gender"] == "male",
["Male", "Female"],
target_feat="target"
)
report.show_html("group_comparison.html")
The labels should match the condition and its complement; in this example, the false group is labeled Female only if the remaining rows are in fact female. The same pattern can compare converted and non-converted users, churned and retained customers, or other defined groups. These comparisons describe observed differences and do not show that group membership caused them.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesRank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Display reports in HTML or a notebook
Control HTML output
show_html() accepts options for file path, browser launch, layout, and scale:
report.show_html(
filepath="report.html",
open_browser=False,
layout="vertical",
scale=0.8
)
Use open_browser=False in scripts, remote servers, containers, and CI jobs where a browser may not be available. The documented layouts are widescreen and vertical; scaling can help when the report is difficult to read at its default size.
Embed a report in a notebook
In a notebook, call show_notebook():
report.show_notebook(
w="100%",
h=700,
scale=0.8,
layout="widescreen"
)
Adjust width, height, scale, or layout if the embedded report is too large for the notebook cell. If rendering remains awkward, save the HTML and view it separately.
What to look for in the report
Sweetviz summarizes columns and their distributions, reports missing values and duplicate rows, and highlights frequent values. Its listed descriptive statistics include minimum, maximum, range, quartiles, mean, mode, standard deviation, sum, median absolute deviation, coefficient of variation, kurtosis, and skewness.
It also summarizes mixed-type associations using Pearson correlation for numerical pairs, the uncertainty coefficient for categorical pairs, and the correlation ratio for categorical–numerical pairs. These measures can help prioritize follow-up questions, but they do not capture every kind of dependence. Pearson correlation, for example, may miss nonlinear relationships. Treat a prominent score as a lead to investigate, not a final statistical conclusion.
Check the data before interpreting results
Automated profiling depends on the schema and values it receives. Review types and clean obvious issues before treating the charts as meaningful:
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
-
Parse dates stored as text, and decide whether to derive useful date features.
-
Check numeric columns that are really categories, such as codes where 1, 2, and 3 are labels rather than measurements.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
Exclude or separately handle identifiers, UUIDs, hashes, raw URLs, free-form text, and near-unique categories if their charts are not useful.
-
Normalize missing-value markers such as
"N/A"where needed, and confirm Boolean fields represented as 0 and 1 are understood appropriately. -
Confirm the target’s name and type before analyzing it.
-
For very large data, start with a representative sample, remove unnecessary columns, and ensure the machine has enough memory. Sweetviz profiles pandas objects, so the data generally needs to be loaded into memory; no fixed maximum dataset size is established here.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Limits, privacy, and common errors
Use it as a first-pass audit, not a verdict
A Sweetviz report does not determine whether an outlier is erroneous, whether a relationship is causal, whether a feature leaks information in a business process, or whether a dataset is fair or production-ready. It is not a complete cleaning pipeline, formal validation suite, or drift-monitoring system. Follow up with domain knowledge, targeted plots, data checks, and the tests your use case requires.
Protect report contents
A standalone HTML report is convenient to share, but it can contain personal information, rare categories, free text, internal fields, subgroup differences, or target labels. Inspect the report and apply your organization’s data-handling rules before emailing, attaching, or publishing it.
Fix import and display problems
-
ModuleNotFoundError: No module named 'sweetviz': the package may have been installed into a different interpreter or notebook kernel. Runpython -m pip install sweetvizin the active environment and check the import path withpython -c "import sweetviz; print(sweetviz.__file__)". In Jupyter,%pip install sweetvizinstalls into the active kernel; restart the kernel if needed. -
AttributeError: module 'sweetviz' has no attribute 'analyze': a local file namedsweetviz.pycan shadow the installed package. Rename it and remove stale.pycfiles or__pycache__entries.Recommended Free Tools
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
Browser does not open: this is common in headless or remote environments. Save the report with
open_browser=Falseand retrieve the HTML through the environment’s usual file or artifact mechanism. -
Comparison schema mismatch: inspect shapes, column names, and dtypes in both DataFrames; resolve missing or extra columns, incompatible types, inconsistent missing-value conventions, or a target present in only one dataset before comparing.
-
Missing-glyph warnings for Asian characters: the project documentation notes reports of this display issue. It can be a font-rendering limitation rather than corrupted source data; use an environment with the required glyphs.
Sweetviz compared with other approaches
| Approach | Best fit | Trade-off |
|---|---|---|
| Sweetviz | Fast visual first-pass EDA on pandas data, especially target, train/test, or subgroup comparisons. | Does not replace domain-specific analysis, data validation, or production monitoring. |
| YData Profiling | Broader report-oriented profiling and data-quality diagnostics; its documentation covers pandas and Spark workflows. | Choose it when profiling breadth matters more than Sweetviz’s compact comparison workflow. |
| pandas with Matplotlib, Seaborn, or Plotly | Exact control over transformations, plots, aggregations, and statistical questions. | Requires more custom analysis than generating an automated profile. |
| Deepchecks | Systematic testing and validation of data and machine-learning models, including production-oriented monitoring use cases. | Addresses a different need from a quick local EDA report. |
Sweetviz’s package documentation also describes optional Comet integration for logging reports when configured with an API key. That workflow is not necessary for local HTML reporting; see the package description for details.
Free tools Windows power users keep installed
One-click scans. No signup required.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

