Avro#
- cudf._lib.pylibcudf.io.avro.read_avro(SourceInfo source_info, list columns=None, size_type skip_rows=0, size_type num_rows=-1) TableWithMetadata #
Reads an Avro dataset into a
TableWithMetadata
.- Parameters:
- source_info: SourceInfo
The SourceInfo object to read the avro dataset from.
- columns: list, default None
Optional columns to read, if not provided, reads all columns in the file.
- skip_rows: size_type, default 0
The number of rows to skip.
- num_rows: size_type, default -1
The number of rows to read, after skipping rows. If -1 is passed, all rows will be read.
- Returns:
- TableWithMetadata
The Table and its corresponding metadata (column names) that were read in.