swat.CAS.read_pickle

CAS.read_pickle(self, path, casout=None, **kwargs)

Load pickled pandas object from the specified path

This method calls pandas.read_pickle() with the given arguments, then uploads the resulting pandas.DataFrame to a CAS table.

Parameters
pathstring

Path to a local pickle file.

casoutstring or CASTable, optional
The output table specification. This includes the following parameters.
namestring, optional

Name of the output CAS table.

caslibstring, optional

CASLib for the output CAS table.

labelstring, optional

The label to apply to the output CAS table.

promoteboolean, optional

If True, the output CAS table will be visible in all sessions.

replaceboolean, optional

If True, the output CAS table will replace any existing CAS. table with the same name.

**kwargsany, optional

Keyword arguments to pandas.read_pickle().

Returns
CASTable

Notes

Paths to specified files point to files on the client machine.

Examples

>>> conn = swat.CAS()
>>> tbl = conn.read_pickle('dataframe.pkl')
>>> print(tbl.head())