@@ -21,25 +21,54 @@ For an in-depth introduction to the dataframe API and the possible workflows it
21
21
22
22
### Using the dataframe API
23
23
24
- The following snippet demonstrates how to query the first 10 rows in a Rerun recording:
24
+ The following snippet demonstrates how to query the first 10 rows in a Rerun recording using latest-at (i.e. time-aligned) semantics :
25
25
26
26
snippet: reference/dataframe_query
27
27
28
28
Check out the API reference to learn more about all the ways that data can be searched and filtered:
29
29
* [🐍 Python API reference](https://ref.rerun.io/docs/python/stable/common/dataframe/)
30
- * [🐍 Python example ](https://github.com/rerun-io/rerun/blob/c00a9f649fd4463f91620e8e2eac11355b245ac5/examples/python/dataframe_query/dataframe_query.py)
31
- * [🦀 Rust API reference](https://docs.rs/crate/ rerun/latest)
32
- * [🦀 Rust example ](https://github.com/rerun-io/rerun/blob/c00a9f649fd4463f91620e8e2eac11355b245ac5/examples/rust/dataframe_query/src/main.rs)
30
+ * [Example ](https://github.com/rerun-io/rerun/blob/c00a9f649fd4463f91620e8e2eac11355b245ac5/examples/python/dataframe_query/dataframe_query.py)
31
+ * [🦀 Rust API reference](https://docs.rs/rerun/latest/rerun/dataframe/index.html )
32
+ * [Example ](https://github.com/rerun-io/rerun/blob/c00a9f649fd4463f91620e8e2eac11355b245ac5/examples/rust/dataframe_query/src/main.rs)
33
33
34
34
35
35
### Using the blueprint API to configure a dataframe view
36
36
37
- TODO(cmc): incoming.
37
+ The following snippet demonstrates how visualize an entire Rerun recording using latest-at (i.e. time-aligned) semantics by displaying the results in a [dataframe view](types/views/dataframe_view):
38
38
39
- Check out the blueprint API reference to learn more about all the ways that data can be searched and filtered:
39
+ snippet: reference/dataframe_view_query
40
+
41
+ <picture>
42
+ <img src="https://static.rerun.io/dataframe_query_example/d3dc908edb09377fbdc4c8f16b1b35a7a35a5e7d/full.png" alt="">
43
+ <source media="(max-width: 480px)" srcset="https://static.rerun.io/dataframe_query_example/d3dc908edb09377fbdc4c8f16b1b35a7a35a5e7d/480w.png">
44
+ <source media="(max-width: 768px)" srcset="https://static.rerun.io/dataframe_query_example/d3dc908edb09377fbdc4c8f16b1b35a7a35a5e7d/768w.png">
45
+ <source media="(max-width: 1024px)" srcset="https://static.rerun.io/dataframe_query_example/d3dc908edb09377fbdc4c8f16b1b35a7a35a5e7d/1024w.png">
46
+ <source media="(max-width: 1200px)" srcset="https://static.rerun.io/dataframe_query_example/d3dc908edb09377fbdc4c8f16b1b35a7a35a5e7d/1200w.png">
47
+ </picture>
48
+
49
+ #### Aside: re-using blueprint files from other SDKs
50
+
51
+ While the blueprint APIs are currently only available in Python, blueprints can be saved and re-logged as needed from any language our SDKs support.
52
+
53
+ First, save the blueprint to a file (`.rbl` by convention) using either the viewer (`Menu > Save blueprint`) or the python API:
54
+
55
+ snippet: reference/dataframe_save_blueprint
56
+
57
+ Then log that blueprint file in addition to the data itself:
58
+
59
+ snippet: reference/dataframe_view_query_external
60
+
61
+ Check out the blueprint API and `log_file_from_path` references to learn more:
40
62
* [🐍 Python blueprint API reference](https://ref.rerun.io/docs/python/latest/common/blueprint_apis/)
63
+ * [🐍 Python `log_file_from_path`](https://ref.rerun.io/docs/python/latest/common/logging_functions/#rerun.log_file_from_path)
64
+ * [🦀 Rust `log_file_from_path`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.log_file_from_path)
65
+ * [🌊 C++ `log_file_from_path`](https://ref.rerun.io/docs/cpp/stable/classrerun_1_1RecordingStream.html#a20798d7ea74cce5c8174e5cacd0a2c47)
41
66
42
67
43
68
### Setting up dataframe view manually in the UI
44
69
45
- TODO(cmc): incoming.
70
+ The same [dataframe view](types/views/dataframe_view) shown above can be configured purely from the UI:
71
+
72
+ <video width="100%" autoplay loop muted controls>
73
+ <source src="https://static.rerun.io/dataframe/df-dna-demo.webm" type="video/webm" />
74
+ </video>
0 commit comments