Dataset Properties

You can use Dataset properties to capture the attributes of a dataset that describe its inherent qualities, features, or characteristics. Properties will be added as a dictionary as you register the dataset or after the dataset has been created.

Properties are optional and work with Dataset.origin, Dataset.clean and Dataset.modeling by assigning to the properties parameter while registering your dataset, as shown in the example below:

origin_resource = FileResource(paths="items.csv")
properties = {"test":10, "QA":"Approved", "Bool":True}
 
# Assigning properties while registering an origin dataset 
origin_dataset = Dataset.origin(
                  name = "Origin_Dataset",
                  resource = origin_resource,
                  properties=properties)

my_iteration.step_collect_initial_data = origin_dataset

You can also update or add dataset properties after a dataset has been registered. You must reassign your dataset to a step to save your updated dataset properties.

# Updating or adding properties after registering origin dataset
origin_dataset.properties = {"test":1, "QA":"Not started", "Bool":False}

# Reassign dataset to save updated properties
my_iteration.step_collect_initial_data = origin_dataset