swat.CAS.read_csv¶
-
CAS.
read_csv
(filepath_or_buffer, casout=None, **kwargs)¶ Read CSV file into a CAS table
This method calls pandas.read_csv() with the given arguments, then uploads the resulting pandas.DataFrame to a CAS table.
Parameters: - filepath_or_buffer : str or any object with a read() method
Path, URL, or buffer to read.
- 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_csv().
Returns: See also
Notes
Paths to specified files point to files on the client machine.
Examples
>>> conn = swat.CAS() >>> tbl = conn.read_csv('iris.csv') >>> print(tbl.head())