swat.CAS.load_path

CAS.load_path(self, path=None, readahead=None, importoptions=None, promote=None, ondemand=None, attrtable=None, caslib=None, datasourceoptions=None, casout=None, singlepass=None, where=None, vars=None, groupby=None, groupbyfmts=None, groupbymode=None, orderby=None, nosource=None, returnwhereinfo=None, **kwargs)

Load a path from a CASLib

The parameters for this are the same as for the builtins.loadtable CAS action. This method is simply a convenience method that loads a table and returns a CASTable in one step.

Returns
CASTable

Notes

The path specified must exist on the server side. For loading data from the client side, see the read_* and upload() methods.

Examples

>>> conn = swat.CAS()
>>> tbl = conn.load_path('data/iris.csv')
>>> print(tbl.head())