Programming Gotchas¶
There are a few areas in working with SWAT where you can get tripped up. We’ve tried to outline some of the common issues to watch out for.
Return Values¶
Since the SWAT API tries to blend the world of CAS and Pandas into a single world, you have to be aware of whether you are calling a CAS action or a method from the Pandas API. CAS actions will always return a CASResults object (which is a subclass of Python’s dictionary).
In [1]: out = tbl.summary()
In [2]: type(out)
Out[2]: swat.cas.results.CASResults
In [3]: out = tbl.serverstatus()