AutoVizWidget

0.23.0 · active · verified Sat Apr 11

AutoVizWidget is a Python library that provides interactive, automatic visualization capabilities for pandas DataFrames, primarily within Jupyter notebooks. It is part of the broader Jupyter Incubator Sparkmagic project, though it can be installed and used independently to enhance data exploration by leveraging `ipywidgets` for interactive UI elements. The library is currently at version 0.23.0 and sees releases often aligned with its parent Sparkmagic project, typically every few months.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to create a pandas DataFrame and then use AutoVizWidget to automatically generate interactive visualizations for it within a Jupyter environment. The `display` function from `IPython.display` is crucial for rendering the widget.

import pandas as pd
from autovizwidget.widget import AutoVizWidget
from IPython.display import display

# Create a sample DataFrame
df = pd.DataFrame({
    'numerical_col': [1, 2, 3, 4, 5],
    'categorical_col': ['A', 'B', 'C', 'D', 'E'],
    'float_col': [10.1, 11.2, 12.3, 13.4, 14.5]
})

# Instantiate and display the AutoVizWidget
av_widget = AutoVizWidget(df)
display(av_widget)

view raw JSON →