Skip to main content

A table data viewer for Python

Project description

tabulous

A table data viewer for Python.

from tabulous import open_sample

viewer = open_sample("iris")

tabulous is highly inspired by napari in its design and API.

df = pd.read_csv("data.csv")
viewer.add_table(df)  # add table data to viewer
viewer.tables  # table list
table = viewer.tables[1]  # get table
table.data  # get pd.DataFrame object (or other similar one)

# Connect data changed signal
# See examples/04_data_changed_signal.py
@table.events.data.connect
def _on_data_change(info):
    """data-changed callback"""

# Connect selection changed signal
# See examples/05_selection_changed.py
@table.events.selections.connect
def _on_selection_change(selections):
    """selection-changed callback"""

Supported table types

Table SpreadSheet
A dtype-tagged table view with fixed size, aimed at viewing and editing pd.DataFrame. This table is the most basic one. A string based table editor. Table is converted into pd.DataFrame object with proper dtypes consistent with reading CSV file using pd.read_csv.
GroupBy TableDisplay
A table group that corresponds to the returned object of the groupby method of pd.DataFrame. A table viewer that hotly reloads data using provided loader function. Useful for streaming data from other softwares.

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

tabulous-0.1.0a0.tar.gz (36.9 kB view hashes)

Uploaded Source

Built Distribution

tabulous-0.1.0a0-py3-none-any.whl (46.9 kB view hashes)

Uploaded Python 3

Supported by

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