| name | sweetviz-common-issues |
| description | Sub-skill of sweetviz: Common Issues. |
| version | 1.0.0 |
| category | data-analysis |
| type | reference |
| scripts_exempt | true |
Common Issues
Common Issues
Issue: Report generation is slow
report = sv.analyze(df, pairwise_analysis="off")
report = sv.analyze(df.sample(50000))
config = sv.FeatureConfig(skip=["high_card_col"])
report = sv.analyze(df, feat_cfg=config)
Issue: Memory error with large dataset
sample_size = min(len(df), 100000)
report = sv.analyze(df.sample(sample_size, random_state=42))
Issue: HTML report won't open
report.show_html("report.html", open_browser=False)
report.show_html("report.html", layout="vertical")
Issue: Categorical variables treated as numeric
config = sv.FeatureConfig(force_cat=["zip_code", "rating"])
report = sv.analyze(df, feat_cfg=config)
df["zip_code"] = df["zip_code"].astype(str)
Issue: Date columns not recognized
df["date_col"] = pd.to_datetime(df["date_col"])
report = sv.analyze(df)
Issue: Report shows too many categories
df["category"] = df["category"].apply(
lambda x: x if x in top_categories else "Other"
)