swat.cas.results.CASResults.concat_bygroups

CASResults.concat_bygroups(self, inplace=False, **kwargs)

Concatenate all tables within a By group into a single table

Parameters
inplaceboolean, optional

Should the CASResults object be modified in place?

**kwargskeyword arguments, optional

Additional parameters to the concat() function.

Returns
CASResults

If inplace == False

None

If inplace == True

Examples

>>> conn = swat.CAS()
>>> tbl = conn.read_csv('data/cars.csv')
>>> out = tbl.groupby('Origin').summary()
>>> print(list(out.keys()))
['ByGroupInfo', 'ByGroup1.Summary', 'ByGroup2.Summary', 'ByGroup3.Summary']
>>> out.concat_bygroups(inplace=True)
>>> print(list(out.keys()))
['Summary']