read_marc21#
- read_marc21(
- sources: str | Path | list[str] | list[Path],
- query: str,
- *,
- header: str | list[str] | None = None,
- predicate: str | None = None,
Read and project MARC21 files into a DataFrame.
- Parameters:
- sources
Path(s) to MARC21 files. Files with
.gzsuffix (compressed in Gzip format) are automatically decompressed.- query
A query that defines the projection to be performed.
- header
Specify the column names either as list of strings or as a comma separated list. If no header is specified the column names are autogenerated in the following format:
column_x, withxbeing an enumeration over every column of the projection, starting at 1.- where
A filter expression used to filter records in advance. This prevents unnecessary memory allocations and thereby improves significantly the performance of the query execution.