swat.cas.results.CASResults.get_set
- CASResults.get_set(num)
Return a CASResults object of the By group set
Some CAS actions support multiple By group sets. This method can be used to retrieve the values for a particular set index.
- Parameters:
- numint
The By group set index to return.
- Returns:
Examples
>>> conn = swat.CAS() >>> tbl = conn.read_csv('data/cars.csv') >>> out = tbl.mdsummary(sets=[dict(groupby=['Origin']), dict(groupby=['Cylinders'])])
Return the first By group set objects
>>> print(out.get_set(1))
Return the second By group set objects
>>> print(out.get_set(2))