HMPlot

Table

A table with an identity, so updates and shared views know its rows.

observations = hm.Table({"x": [1, 2], "y": [3, 4]})
with hm.Plot(data=observations) as plot:
    hm.Points(x="x", y="y")
observations.update_columns(y=[4, 5])

Parameters

valuetable
Columns or rows (Python: a dict, a DataFrame or an xarray Dataset).
keycolumn | column[]
The column whose values identify a row across updates.
update_columns / replacemethods
Python: change some columns, or the whole table, and redraw.

Usage

Python snapshots numeric columns when updates are queued. update_columns changes named columns; replace replaces the table. In-place array mutations are not observed. Use key for identity across reordering. GPU tensors require explicit host conversion in Python.

Related examples

Data shortcuts