Skip to main content

A plotly-based toolkit for data exploration and visualization

Project description

Exploralytics

PyPI Latest Release LinkedIn GitHub

What is it?

A Python toolkit that streamlines the creation of Plotly visualizations for exploratory data analysis (EDA). Built to simplify the visualization workflow, Exploralytics provides an intuitive interface for creating common EDA plots like histograms, correlation matrices, and bar charts with consistent styling and formatting.

I created this to simplify my own workflow, but other data professionals might find it useful too.

Main Features

Create sophisticated data visualizations with minimal code. Key features include:

  • Histogram Grid: Analyze distributions of multiple numerical variables
  • Correlation Analysis:
    • Full correlation matrix heatmap
    • Target-focused correlation analysis
  • Bar Charts:
    • Horizontal bar plots with customizable highlighting
    • Dot plots with connecting lines
  • Consistent Styling: Unified look across all visualizations
  • Customization Options: Colors, dimensions, templates, and more

Installation

Requires Python 3.9 or newer.

Using pip:

pip install exploralytics

Or install from source:

git clone https://github.com/jpcurada/exploralytics.git
cd exploralytics
pip install -e .

Usage Examples

Basic Usage

from exploralytics.visualize import Visualizer
import pandas as pd

# Initialize visualizer with custom styling
viz = Visualizer(
    color="#94C973",  # Custom color
    height=768,       # Plot height
    width=1366,       # Plot width
    template="simple_white"  # Plotly template
)

# Create histogram grid
fig = viz.plot_histograms(
    df,
    title='Distribution Analysis',
    subtitle='Histogram of numerical variables',
    num_cols=2,
    show_mean=True,
    show_median=True
)
fig.show()

# Create correlation heatmap
fig = viz.plot_correlation_map(
    df,
    title='Correlation Analysis',
    subtitle='Relationship between variables'
)
fig.show()

Advanced Features

# Target-specific correlation analysis
fig = viz.plot_correlation_with_target(
    df,
    target_column='sales',
    title='Feature Importance',
    subtitle='Correlation with sales'
)

# Horizontal bar plot with highlights
fig = viz.plot_hbar(
    df,
    x_col='category',
    y_col='value',
    highlight_top_n=(3, '#2E75B6'),  # Highlight top 3 in blue
    highlight_low_n=(2, '#FF9999')   # Highlight bottom 2 in red
)

# Dot plot with reference line
fig = viz.plot_dot(
    df,
    x_col='category',
    y_col='metric',
    add_hline_at=('Average', 75.5),
    top_n=10
)

Customization Options

The Visualizer class accepts several parameters for customization:

viz = Visualizer(
    color="#94C973",                    # Default color for plot elements
    height=768,                         # Plot height in pixels
    width=1366,                         # Plot width in pixels
    template="simple_white",            # Plotly template
    colorscale=px.colors.diverging.Earth,  # Color scale for heatmaps
    texts_font_style="Arial",           # Font family
    title_bold=True                     # Bold titles
)

Dependencies

  • pandas >= 1.3.0
  • plotly >= 5.0.0
  • numpy >= 1.20.0

Development

Want to contribute? Here's how:

  1. Fork the repository
  2. Create a feature branch
git checkout -b feature/new-feature
  1. Make your changes
  2. Submit a pull request

License

BSD License

Support

For bugs, questions, or suggestions, please open an issue on GitHub.


Created and maintained by John Paul Curada. Contributions welcome!

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

exploralytics-1.0.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

exploralytics-1.0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file exploralytics-1.0.1.tar.gz.

File metadata

  • Download URL: exploralytics-1.0.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for exploralytics-1.0.1.tar.gz
Algorithm Hash digest
SHA256 17b9678ca7439280ca4b7ffdcf07d39e2f4c8bf4dc27eefa9228f6a2e38092ce
MD5 2e453d7913264a0e791f89199d43674a
BLAKE2b-256 457295c584f2c7e79cec6b44fe830369608590ac8522e5a16a3f2c0db50f519b

See more details on using hashes here.

File details

Details for the file exploralytics-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: exploralytics-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for exploralytics-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab696b7fbf2db4d80b45d211927704fbeba43c2c6240567b9563adcff0561f57
MD5 7ce5e8f6508121240eb2c8ee5030d68d
BLAKE2b-256 c0bdcaf13e4c8220548e1c9a1c1e600e0205072ab760bcbe366cfb67edbab6b0

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