Pygwalker

0.5.0.1 · active · verified Wed Apr 15

Pygwalker (Python Graphic Walker) is a Python library that transforms pandas (and Polars) DataFrames into an interactive, Tableau-style user interface for data exploration and visualization directly within Jupyter Notebooks, Google Colab, and other compatible environments. It simplifies data analysis and visualization workflows by enabling drag-and-drop operations for quick visual insights. The library is actively developed, with the current version being 0.5.0.1, and sees regular updates to enhance features and performance.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to initialize Pygwalker with a pandas DataFrame, launching an interactive UI in your Jupyter Notebook or compatible environment. The `pyg.walk()` function takes a DataFrame and opens a graphical interface for drag-and-drop data exploration. For larger datasets, consider adding `kernel_computation=True` to leverage DuckDB for enhanced performance.

import pandas as pd
import pygwalker as pyg

# Create a sample DataFrame
data = {
    'City': ['New York', 'Los Angeles', 'Chicago', 'Houston', 'Phoenix'],
    'Population': [8804190, 3898747, 2716075, 2325502, 1680992],
    'Area_sq_mi': [302.6, 468.7, 227.6, 637.4, 517.6]
}
df = pd.DataFrame(data)

# Launch Pygwalker UI
# You can also use pyg.walk(df, kernel_computation=True) for better performance on large datasets.
walker = pyg.walk(df)

view raw JSON →