label Property (Python)

The label property of a Variable object gets or sets the variable label.

Example

varObj = datasetObj.varlist['bdate']
#Get the variable label
label = varObj.label
#Set the variable label
varObj.label = 'Birth Date'