Skip to main content

Data Visualization and Insight Library

Project description

DataViz

A lightweight Python library for interactive data exploration and automatic insights.

Features

  • 🔍 Data quality analysis
  • 💡 Automatic insight generation
  • 🔧 Code Generation (generate_code())
  • ⚡ Code Optimizer (optimize())
  • 📊 Chart Builder (suggest_charts())
  • 💼 Generate analysis (export_analysis_code())
  • 📈 Smart visualization

Installation

pip install -e .

Quick Start

import pandas as pd
from dataviz import enhanced

# Load your data
df = pd.read_csv('your_data.csv')

# Create DataViz object
dv = analyze(df)

# View first N rows with interactive table
dv.show(n=20)  # default is 20

# Get automatic insights
dv.insights()  # Basic insights (5 by default)
dv.insights(max_insights=10)  # More insights
dv.insights(detailed=True, max_insights=15)  # Comprehensive analysis

# Get optimization suggestions
dv.optimize()

# Control number of charts and visualization recommendations
dv.visualize(max_charts=2)      # Show only 2 charts
dv.visualize(max_charts=6)      # Show 6 charts
dv.visualize(max_charts=10)     # Show 10 charts
dv.visualize(max_charts='all')  # Show all available charts (default)

# Individual plots
dv.plot_distribution('age', kind='hist')  # or 'kde', 'box'
dv.plot_categorical('category', top_n=15)
dv.plot_scatter('x_col', 'y_col', hue='category')
dv.plot_correlation(method='pearson')  # or 'spearman', 'kendall'
dv.plot_pairplot(columns=['col1', 'col2', 'col3'], hue='category')

# Perform operations (these get tracked)
dv.filter(df['col'] > value, "df['col'] > value")
dv.sort_values('col', ascending=False)
dv.drop_missing(['col'])

# Generate code for your operations
dv.generate_code(df_name='my_df', include_load=True)

# Or export complete analysis code
dv.export_analysis_code('my_analysis.py')

# Suggest charts with code snippets
dv.suggest_charts(max_charts=6)  # Get code for 6 charts
dv.suggest_charts(max_charts='all')  # Get all suggestions

# Reset to original DataFrame
dv.reset()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ml_dataviz-0.1.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ml_dataviz-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file ml_dataviz-0.1.0.tar.gz.

File metadata

  • Download URL: ml_dataviz-0.1.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ml_dataviz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1122065653c2161d5b838adde3b3c5610ed3ce93517074115357f3b8f356f5b7
MD5 348c856ab8ff90377441c8705ee2a4bd
BLAKE2b-256 783d289325024067d19b80229c0004ea25a8792ab58d626538c50e94682f4680

See more details on using hashes here.

File details

Details for the file ml_dataviz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ml_dataviz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ml_dataviz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20056c98dfa4ef702e14fbb1d62050a56e91f62f9fa3616a43e0dc1fa96cc6e6
MD5 6dcef11e48108e5a33744fd3a2a414df
BLAKE2b-256 ef795311d41f771c4f1db33ab83bdd0c4d454802df7e51f8947bef29957e1f50

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page