swat.cas.table.CASTable.copy

CASTable.copy(self, deep=True, exclude=None)

Make a copy of the CASTable object

Parameters
deepboolean, optional

If True, all lists and dict-type objects are deep copied

excludelist-of-strings, optional

Parameters that should be excluded (top-level only).

Returns
CASTable object

Examples

>>> tbl = CASTable('my-table', where='a < 2')
>>> tbl2 = tbl.copy()
>>> print(tbl2)
{'name': 'my-table', 'where': 'a < 2'}
>>> print(tbl is tbl2)
False