metasyn.read_sav

metasyn.read_sav(fp, max_rows=None, chunk_size=None)

Create the file interface from a .sav or .zsav file.

Parameters:
  • fp (Union[Path, str]) – File to read the dataframe and metadata from.

  • max_rows (Optional[int]) – Maximum number of rows to read in.

  • chunk_size (Optional[int]) – Perform row sampling with contiguous rows. Should be used in combination with the max_rows parameter, otherwise it is ignored.

Returns:

Polars dataframe with the converted columns.

Return type:

df