swat.CAS.read_hdf¶
-
CAS.
read_hdf
(path_or_buf, casout=None, **kwargs)¶ Read from the HDF store and create a CAS table
This method calls pandas.read_hdf() with the given arguments, then uploads the resulting pandas.DataFrame to a CAS table.
Parameters: - path_or_buf : string or file-like object
The path, URL, or file object that contains the HDF data.
- casout : string or CASTable, optional
- The output table specification. This includes the following parameters.
- name : string, optional
Name of the output CAS table.
- caslib : string, optional
CASLib for the output CAS table.
- label : string, optional
The label to apply to the output CAS table.
- promote : boolean, optional
If True, the output CAS table will be visible in all sessions.
- replace : boolean, optional
If True, the output CAS table will replace any existing CAS. table with the same name.
- **kwargs : any, optional
Keyword arguments to pandas.read_hdf().
Returns: See also
Examples
>>> conn = swat.CAS() >>> tbl = conn.read_hdf('iris.html') >>> print(tbl.head())