metasyn.read_dta

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

Read a .dta stata file into metadata and a DataFrame.

Parameters:
  • fp (Union[Path, str]) – File to be read with .dta extension.

  • 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