Variable$update
Variable$update(*, label=NULL, description=NULL, value_labels=NULL) → self
Update metadata attributes on a variable. Only updates an attribute if the value is not NULL; to unset an attribute, set it to an empty string.
Parameters:
label
: str, default NULL
If specified, will set the variable's label. Must be less than or equal to 256 characters. Pass an empty string to unset a variable's label.
description
: str, default NULL
If specified, will set the variable's description. Must be less than or equal to 5000 characters. Pass an empty string to unset a variable's description.
value_labels
: list<{ "value": str, "label": str }> | NULL, default NULL
If specified, will set the value labels on a variable. Passed as a list of named lists with attributes "value" and "label". Pass an empty list to unset the variable's value labels.
Returns:
self (a Variable)
Examples:
Last updated