Datasets
One common use case of contexts is the creation of datasets. Each dataset has it’s own context, such that it can easily be viewed in it’s own table.
The unify.Dataset
class is the best way to interact with your datasets from the Python client.
You can then upload this to your interface like so.
unify.Dataset
sets the context as f"Datasets/{name}"
, so your dataset can be viewed at Datasets/my_dataset
.
IMG
If your dataset already exists upstream, you can download it like so.
You can also add and remove content by value using standard Python operators.
Given that logs can be shared across multiple contexts, it’s easy to create sub-datasets withou duplication.
IMG
Editing a log (row) in one dataset will be reflected in the other.
IMG
Logs can also be removed from one dataset table, without deleting it from the other. However, if the log is deleted from both datasets, then it will be deleted entirely.
IMG