I/O#
I/O Utility Classes#
- class cudf._lib.pylibcudf.io.types.SinkInfo(list sinks)#
A class containing details on a source to read from.
For details, see
cudf::io::sink_info
.- Parameters:
- sinkslist of str, PathLike, BytesIO, StringIO
A homogeneous list of sinks (this can be a string filename, bytes, or one of the Python I/O classes) to read from.
Mixing different types of sinks will raise a ValueError.
- class cudf._lib.pylibcudf.io.types.SourceInfo(list sources)#
A class containing details on a source to read from.
For details, see
cudf::io::source_info
.- Parameters:
- sourcesList[Union[str, os.PathLike, bytes, io.BytesIO, DataSource]]
A homogeneous list of sources to read from.
Mixing different types of sources will raise a ValueError.
- class cudf._lib.pylibcudf.io.types.TableWithMetadata(Table tbl, list column_names) A container holding a table and its associated metadata (e.g. column names)#
A container holding a table and its associated metadata (e.g. column names)
For details, see
cudf::io::table_with_metadata
.- Parameters:
- tblTable
The input table.
- column_nameslist
A list of tuples each containing the name of each column and the names of its child columns (in the same format). e.g. [(“id”, []), (“name”, [(“first”, []), (“last”, [])])]
Attributes
Return a dictionary mapping the names of columns with children to the names of their child columns
Return a list containing the columns of the table
Returns a list containing a dict containing file-format specific metadata, for each file being read in.
tbl: cudf._lib.pylibcudf.table.Table
Methods
column_names
(self[, include_children])Return a list containing the column names of the table
- child_names#
Return a dictionary mapping the names of columns with children to the names of their child columns
- column_names(self, include_children=False)#
Return a list containing the column names of the table
- columns#
Return a list containing the columns of the table
- per_file_user_data#
Returns a list containing a dict containing file-format specific metadata, for each file being read in.
- tbl#
tbl: cudf._lib.pylibcudf.table.Table