statadict.parse_stata_dict

statadict.parse_stata_dict(file: str)statadict.base.StataDict

Parses Stata dictionary file and returns object containing column data as attributes.

‘names’, ‘colspecs’ and ‘widths’ attributes can be used with ‘pandas.read_fwf()’.

Parameters

file – Stata dictionary file (usually .dct extension)

Type

str

Returns

Object with column data as attributes

Return type

statadict.base.StataDict