polars.read_avro

polars.read_avro(file: Union[str, pathlib.Path, _io.BytesIO, BinaryIO], columns: Optional[Union[List[int], List[str]]] = None, n_rows: Optional[int] = None, **kwargs: Any) polars.internals.frame.DataFrame

Read into a DataFrame from Apache Avro format.

Parameters
file

Path to a file or a file-like object.

columns

Columns to select. Accepts a list of column indices (starting at zero) or a list of column names.

n_rows

Stop reading from Apache Avro file after reading n_rows.

Returns
DataFrame