DataframeView
A view to display any data in a tabular form.
Any data from the store can be shown, using a flexibly, user-configurable query.
Properties properties
query
query
Query of the dataframe.
timeline
: The timeline for this query.filter_by_range
: If provided, only rows whose timestamp is within this range will be shown.filter_by_event
: If provided, only show rows which contains a logged event for the specified component.apply_latest_at
: Should empty cells be filled with latest-at queries?select
: Selected columns. If unset, all columns are selected.
API reference links api-reference-links
Example example
Use a blueprint to customize a DataframeView. use-a-blueprint-to-customize-a-dataframeview
"""Use a blueprint to customize a DataframeView."""
import math
import rerun as rr
import rerun.blueprint as rrb
rr.init("rerun_example_dataframe", spawn=True)
# Log some data.
rr.log("trig/sin", rr.SeriesLine(color=[255, 0, 0], name="sin(0.01t)"), static=True)
rr.log("trig/cos", rr.SeriesLine(color=[0, 255, 0], name="cos(0.01t)"), static=True)
for t in range(0, int(math.pi * 4 * 100.0)):
rr.set_time_seconds("t", t)
rr.log("trig/sin", rr.Scalar(math.sin(float(t) / 100.0)))
rr.log("trig/cos", rr.Scalar(math.cos(float(t) / 100.0)))
# Create a Dataframe View
blueprint = rrb.Blueprint(
rrb.DataframeView(
origin="/trig",
# TODO(#6896): improve `DataframeQueryV2` API and showcase more features
query=rrb.archetypes.DataframeQueryV2(
timeline="t",
range_filter=rrb.components.RangeFilter(start=rr.TimeInt(seconds=0), end=rr.TimeInt(seconds=20)),
),
),
)
rr.send_blueprint(blueprint)
Visualized archetypes visualized-archetypes
Any data can be displayed by the Dataframe view.