process_data_file()
Read file and return a tidy DataFrame using metadata and codes_dict.
Usage
process_data_file(
file,
metadata,
codes_dict=None,
)Parameters
file: str | Path-
Path to a
<ROOT>_Q<YYYYMM>_G<YYYYMMDD>.TXTdata file. metadata: dict[str, Any]-
Output of process_metadata_file().
codes_dict: pl.DataFrame | None = None-
Code dictionary DataFrame from get_codes_dict(). Pass
Nonefor datasets with no codes.