cases Property (Python)

The cases property of a Dataset object returns an instance of the CaseList class. The CaseList class provides access to the cases in the associated dataset, allowing you to read existing cases, modify case values, and add new cases. See the topic CaseList Class (Python) for more information.

Example

import spss
spss.StartDataStep()
datasetObj = spss.Dataset('data1')
caseListObj = datasetObj.cases
spss.EndDataStep()